I don't know why, but after some time, the code stop working.
Also, WHY can't i use just "every 1 minute"? The skript asks for the "in wirld "world"...
[doublepost=1491848006,1491846994][/doublepost]Ok, looks like the bypass was the issue.
Can someone help me with another way to give players a toggle function for the loop? This part " if {sono.%loop-player%.bypass} is set: stop" breaks the skript.
code_language.skript:
every 1 minute in world "world":
loop all players:
if {sono.%loop-player%.bypass} is set:
stop
if {sono.%loop-player%} is not set:
set {sono.%loop-player%} to 80
remove 1 from {sono.%loop-player%}
broadcast
send action bar from "&o&c§l-1 §7[§a-§7] §6%{sono.%loop-player%}%/240" to loop-player
if {sono.%loop-player%} > 210:
remove speed from the loop-player
apply speed 1 to the loop-player for 70 seconds
remove night vision from the loop-player
apply night vision 1 to the loop-player for 70 seconds
if {sono.%loop-player%} < 1:
set {sono.%loop-player%} to 1
if {sono.%loop-player%} < 30:
apply slowness 1 to the loop-player for 60 seconds
if {sono.%loop-player%} < 5:
remove blindness from the loop-player
apply blindness 2 to the loop-player for 70 seconds
stop
if {sono.%loop-player%} < 10:
remove blindness from the loop-player
apply blindness 1 to the loop-player for 70 seconds
stop
Also, WHY can't i use just "every 1 minute"? The skript asks for the "in wirld "world"...
[doublepost=1491848006,1491846994][/doublepost]Ok, looks like the bypass was the issue.
Can someone help me with another way to give players a toggle function for the loop? This part " if {sono.%loop-player%.bypass} is set: stop" breaks the skript.