# Theory of Unlimited Arena for Minigame

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

Tags:
Not open for further replies.
1. ### iRegalia Member

Joined:
Jan 26, 2017
Messages:
20
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::*}
4.     loop 8 times:
5.         loop 8 times:
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

#1