Renaming variables

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Dovias

New Member
Dec 8, 2019
6
1
0
26
Is there any ways to rename or duplicate list variables? I know there's a way of it using the tree of expression from MundoSK i think, but if there's any vanilla way to do that? thanks! btw set {variable1::*} to {variable2::*}, doesn't work. Tried it already. :emoji_disappointed:
 
Make sure to delete/clear the variable you are copying over to if it already has values set.
code_language.skript:
#delete {variable2::*} (delete if already set)
loop {variable1::*}:
    set {variable2::%loop-index%} to loop-value
 
Last edited:
Status
Not open for further replies.