1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Theory of Unlimited Arena for Minigame

Discussion in 'Skript' started by iRegalia, Feb 2, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. iRegalia

    iRegalia Member

    Joined:
    Jan 26, 2017
    Messages:
    20
    Likes Received:
    0
    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 (Skript):
    1. on skript start:
    2.     delete {tdm.arena.id::*}
    3.     add "TDM-0" to {tdm.arena.id::*}
    4.     loop 8 times:
    5.         loop 8 times:
    6.             add "TDM-%loop-number-2%-%loop-number-1%" to {tdm.arena.id::*}
    Code (Skript):
    1. function setMapLocation(a: text) :: text:
    2.     loop {tdm.arena.id::*}:
    3.         remove loop-value from {tdm.arena.id::*}
    4.         set {_num::*} to loop-value split at "-"
    5.         set {tdm.%{_a}%.map} to {_maploc}
    6.         stop loop
    7.     set {_num::2} to {_num::2} parsed as number
    8.     set {_num::3} to {_num::3} parsed as number
    9.     if {_num::2} = 0:
    10.         return "*0"
    11.     if {_num::2} / (8 * {_num::3}) = 0.125:
    12.         return "+x|+y|*%{_num::3}%"
    13.     if {_num::2} / (8 * {_num::3}) = 0.25:
    14.         return "+x|*%{_num::3}%"
    15.     if {_num::2} / (8 * {_num::3}) = 0.375:
    16.         return "+x|-y|*%{_num::3}%"
    17.     if {_num::2} / (8 * {_num::3}) = 0.5:
    18.         return "-y|*%{_num::3}%"
    19.     if {_num::2} / (8 * {_num::3}) = 0.625:
    20.         return "-x|-y|*%{_num::3}%"
    21.     if {_num::2} / (8 * {_num::3}) = 0.75:
    22.         return "-x|*%{_num::3}%"
    23.     if {_num::2} / (8 * {_num::3}) = 0.875:
    24.         return "-y|+x|*%{_num::3}%"
    25.     if {_num::2} / (8 * {_num::3}) = 1:
    26.         return "+y|*%{_num::3}%"
    27.     stop
     
Thread Status:
Not open for further replies.
Loading...