I'm making a clearchat command, so when staff uses it shows who cleared chat, but I wanted to include the prefix from luckperms
but since skript requires <##990000> for hex colors and LuckPerms uses 󱬰
I was trying to figure out a way to loop through the characters, and as impractical as it is, I tried to do it on my own
but if someone could help me
currently I'm getting an error saying there is no loop for loop-index
set {_getprefix} to placeholder "luckperms_prefix"
set {_length} to length of "%{_getprefix}%"
set {_count} to 0
loop {_length} times:
set {_char} to loop-index character of {_getprefix}
send {_char}
if {_count} is equal to 5:
stop
else:
set {_count} to {_count} + 1
Also the count was variable was only to test it