loop all players:
set {_difficulty} to {difficulty::%loop-player's uuid%}
broadcast "1"
if {arena1::%loop-player's uuid%} = true:
set {_spawner} to {spawnerloc::arena1::zombietier1}
broadcast "arena1"
else if {arena2::%loop-player's uuid%} = true:
set {_spawner} to {spawnerloc::arena2::zombietier1}
broadcast "arena2"
else if {arena3::%loop-player's uuid%} = true:
set {_spawner} to {spawnerloc::arena3::zombietier1}
broadcast "arena3"
else if {arena4::%loop-player's uuid%} = true:
set {_spawner} to {spawnerloc::arena4::zombietier1}
broadcast "arena4"
else if {arena5::%loop-player's uuid%} = true:
set {_spawner} to {spawnerloc::arena5::zombietier1}
broadcast "arena5"
else:
continue
if {_spawner} is less than 4:
summon adult zombie at {_spawner}
if {_difficulty} = 1:
set {_health} to 20
else if {_difficulty} = 2:
set {_health} to 100
else if {_difficulty} = 3:
set {_health} to 500
else if {_difficulty} = 4:
set {_health} to 1500
else if {_difficulty} = 5:
set {_health} to 3500
else if {_difficulty} = 6:
set {_health} to 7000
else if {_difficulty} = 7:
set {_health} to 12500
else:
set {_health} to 20
set max health of last spawned zombie to {_health}
set health of last spawned zombie to {_health}
broadcast "spawned"
else:
stop
#dungeon
1 messages · Page 1 of 1 (latest)
instead of having a variable for each arena for the player, just have 1, and set it to the arena number
ie {arena::%player's UUID%} = 1/2/3/4/5
and your spawnerloc list can also just have the numbers as an index
yh but i already set it to smt
command /setspawner [<text>]:
permission: op
trigger:
set {spawnerloc::%arg-1%::zombietier1} to player's location
send "&a&oSuccessfully Set %arg-1% spawner" to player
with this
okay, so then just use spawnerLoc::%arenaNumber%::zombieTier1}
do this
then you can just plug that in to here