skript help

command /list:
trigger:
loop all players:
if region at loop-player is "a1" or "a2" or "a3" or "a4":
add loop-player to {list::*}
set {_list2} to a random element out of {list::*}
send "%{_list2}%"
delete {list::*}
delete {_list2}
command /list:
trigger:
loop all players:
if region at loop-player is "a1" or "a2" or "a3" or "a4":
add loop-player to {list::*}
set {_list2} to a random element out of {list::*}
send "%{_list2}%"
delete {list::*}
delete {_list2}
Its supposed to give only name of one player as the random element but instead gives me the name of all the players in the defined region
4 Replies
Admincraft Meta
Admincraft Meta7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by tryxqrd#0
Cerial
Cerial7mo ago
It's best if you use the skunity discord since it's more directed to skript users discord.gg/skunity Or wait discord.gg/skript
TryXqrd
TryXqrdOP7mo ago
thanks
Eternal
Eternal6mo ago
oh wow you wander around here?

Did you find this page helpful?