Somehow it seems skript is ordering elements in a list variable automatically which is bad for my actual script.
Look at this example:
Result:
1.) List:
player1
player2
player3
2.) List:
player2
player3
3.) List:
player1
player2
player3
But List 3.) should be:
player2
player3
player1
because I added player1 after I have added player2 + player3.
Why is this and how can I fix it???
Look at this example:
code_language.skript:
command /order:
trigger:
add "player1" to {_test::*}
add "player2" to {_test::*}
add "player3" to {_test::*}
broadcast "1.) List:"
loop {_test::*}:
broadcast "%loop-value%"
wait 1 second
broadcast "deleting player1"
loop {_test::*}:
if loop-value is "player1":
remove loop-value from {_test::*}
broadcast "2.) List:"
loop {_test::*}:
broadcast "%loop-value%"
wait 1 second
broadcast "adding player1"
add "player1" to {_test::*}
broadcast "3.) List:"
loop {_test::*}:
broadcast "%loop-value%"
Result:
1.) List:
player1
player2
player3
2.) List:
player2
player3
3.) List:
player1
player2
player3
But List 3.) should be:
player2
player3
player1
because I added player1 after I have added player2 + player3.
Why is this and how can I fix it???