Skript Version: 2.2-dev26f (latest one that works with addons without errors)
Skript Author: bensku
Server Version: 1.8.9 Spigot (We dislike 1.9+ PvP)
I think the title is explanatory enough, but how exactly could I split up players into two teams through a loop all players loop? I'd rather not use a random integer or a chance since teams have a chance of not being either, and I also tried anything I could think of with booleans (which didn't work out). If anyone can help me, thanks!
(I imagined something like this would work. I really wish someone would make an addon supporting goto effects.)
Skript Author: bensku
Server Version: 1.8.9 Spigot (We dislike 1.9+ PvP)
I think the title is explanatory enough, but how exactly could I split up players into two teams through a loop all players loop? I'd rather not use a random integer or a chance since teams have a chance of not being either, and I also tried anything I could think of with booleans (which didn't work out). If anyone can help me, thanks!
(I imagined something like this would work. I really wish someone would make an addon supporting goto effects.)
code_language.skript:
set {whichteam} to true:
loop all players:
set {whichteam} to true:
if {whichteam} is true:
broadcast "team one %loop-player%"
set {whichteam} to false
else if {whichteam} is false:
broadcast "team two %loop-player%"
set {whichteam} to true