Hi,
What would I have to do to change the index of an array element?
Example:
EDIT: Nevermind. I'm dumb.
SOLUTION: You can't change the index. If you're looking to reorder an array, like put an element into another position, you simply edit the existing element that has that new position to the element that you wanted to move.
What would I have to do to change the index of an array element?
Example:
code_language.skript:
loop {channellog.%{currentchannel.%player's uuid%}%::*}:
set index of {channellog.%{currentchannel.%player's uuid%}%::%loop-index%} to (loop-index - 1)
EDIT: Nevermind. I'm dumb.
SOLUTION: You can't change the index. If you're looking to reorder an array, like put an element into another position, you simply edit the existing element that has that new position to the element that you wanted to move.
Last edited: