if arg-2 is not set:
if arg-3 is set:
loop {kingdoms::*}:
loop {kingdoms::%loop-value-1%::*}:
if loop-value-2 is player:
send "&6&lC&8&lR &7&l| &aYou invited &b%arg-2%&a to &6%loop-value-1%&a!" to player
send "&6&lC&8&lR &7&l| &bYou&a have been invited to &6%loop-value-1%&a!" to arg-3
add arg-3 to {invites::*}
add loop-value-1 to {invites::%arg-2%::*}```
#Team invitation script
1 messages · Page 1 of 1 (latest)
so basicly the command is command /kingdom <text> [<text>] [<player>]
what doesnt work is basicly all of this ig?

forgot a colon
command /kingdom <text> [<text>] [<player>]:
typo bubt it is in the code
it really has to do with this one
Debug
Try broadcasting your variables, with broadcast "%{variable}%" to check if they really are set. If you are using variables starting with _, make sure they are set in the current trigger as they do not save between different triggers. Also make sure any conditions in your skript are being met.
add a broadcast before your conditions
and if it broadcasts it then thats not the problem and keep doing that until it doesnt broadcast anything
ok imma try
debug let's you sees where specifically is the issue
are you sure the loops have values to start with?
whats taking you so long lmao
I was eating and good that you said this bc I forgot