1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved How I can make a variable inside a variable?

Discussion in 'Skript' started by Aidanete, Feb 28, 2018.

Thread Status:
Not open for further replies.
  1. Aidanete

    Aidanete Well-Known Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    8
    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 (Skript):
    1. 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
     
  2. Best Answer:
    Post #2 by Donut, Feb 28, 2018
  3. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    Code (Skript):
    1. {wm.warp.%{wm.placedwarp.%targeted block%}%}
     
    • Like Like x 1
  4. Aidanete

    Aidanete Well-Known Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    8
    Thank you!
     
Thread Status:
Not open for further replies.
Loading...