Solved How I can make a variable inside a variable?

  • 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.

Aidanete

Active Member
Apr 11, 2017
139
10
0
I had another problem, a little bit harder this time. I want to make the player to be teleported to a warp when the player rightclick a block. The problem is that I need to execute this code that needs a variable inside a variable.
code_language.skript:
teleport the player to {wm.warp.%wm.placedwarp%targeted block%%}
The two variables are these:
- {wm.warp.%warp name%}
- {wm.placedwarp.%targeted block%}
I want to replace %warp name% with the second variable. But I don't know how to do it.
NOTES
  • Skript: Last Bensku Fork at the moment
  • Minecraft: 1.12.2
Thank you for your help
 
Status
Not open for further replies.