Hey, ive gotten help from someone and got this code
I did modify a little bit of the code to make sure it works and when i do try it i get this in chat:
Posted by: zribe from the skUnity Discord. View the thread on skUnity Discord here
code_language.skript:
function convert(p: player, p2: player):
set {_v} to {home.%{_p}%}
set {home::%uuid of {_p}%::1} to {_v}
delete {home.%{_p}%}
send "Done, Home 1, Player: %{_p}%" to {_p2}
loop 3 times:
set {_v} to {home%loop-value+1%.%{_p}%}
set {home::%uuid of {_p}%::%loop-value+1%} to {_v}
delete {home%loop-value+1%.%{_p}%}
send "Done, Home %loop-value%, Player: %{_p}%" to {_p2}
command /convert2:
trigger:
loop all offline players:
send loop-offlineplayer to player
convert(loop-offlineplayer, player)
I did modify a little bit of the code to make sure it works and when i do try it i get this in chat:
Posted by: zribe from the skUnity Discord. View the thread on skUnity Discord here