Theory of Unlimited Arena for Minigame

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

iRegalia

Member
Jan 26, 2017
20
0
1
24
How did you all run unlimited arena? without lagging. also without bungeecord
  1. Clone World ( When start a minigame )
  2. increment x,y [Generated World] (Paste Schematic)
  3. Any others ways?
Now im using with
code_language.skript:
on skript start:
    delete {tdm.arena.id::*}
    add "TDM-0" to {tdm.arena.id::*}
    loop 8 times:
        loop 8 times:
            add "TDM-%loop-number-2%-%loop-number-1%" to {tdm.arena.id::*}

code_language.skript:
function setMapLocation(a: text) :: text:
    loop {tdm.arena.id::*}:
        remove loop-value from {tdm.arena.id::*}
        set {_num::*} to loop-value split at "-"
        set {tdm.%{_a}%.map} to {_maploc}
        stop loop
    set {_num::2} to {_num::2} parsed as number
    set {_num::3} to {_num::3} parsed as number
    if {_num::2} = 0:
        return "*0"
    if {_num::2} / (8 * {_num::3}) = 0.125:
        return "+x|+y|*%{_num::3}%"
    if {_num::2} / (8 * {_num::3}) = 0.25:
        return "+x|*%{_num::3}%"
    if {_num::2} / (8 * {_num::3}) = 0.375:
        return "+x|-y|*%{_num::3}%"
    if {_num::2} / (8 * {_num::3}) = 0.5:
        return "-y|*%{_num::3}%"
    if {_num::2} / (8 * {_num::3}) = 0.625:
        return "-x|-y|*%{_num::3}%"
    if {_num::2} / (8 * {_num::3}) = 0.75:
        return "-x|*%{_num::3}%"
    if {_num::2} / (8 * {_num::3}) = 0.875:
        return "-y|+x|*%{_num::3}%"
    if {_num::2} / (8 * {_num::3}) = 1:
        return "+y|*%{_num::3}%"
    stop
 
Status
Not open for further replies.