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

Need help

Discussion in 'Skript' started by Duuck, Aug 27, 2021.

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

    Duuck New Member

    Joined:
    Aug 19, 2021
    Messages:
    6
    Likes Received:
    0
    command /travel:
    trigger:
    if player has permission "area1.buy"
    If {strength.%player%} >= 200:
    remove 200 from %{strength.%player%}%
    set players spawn to 402 72 516.5
    else:
    send: "&cYou are too weak to travel"

    This will not work, the strength thing is my currency and i want to make a location shop so that when a player buys a location it sets their spawn to a new area and teleports them there, also removing 200 of their strength (i would also like this to change as once they have used the command /travel once, the second time id like it to send them somewhere else and set their spawn there and also cost more (like prestiges) if theres an easier way to do this, im all ears!)
     
  2. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Please specify the errors.
     
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    597
    Likes Received:
    37
    Code (Text):
    1. remove 200 from {strength.%player%}
    And use list variables instead of normal ones
     
Thread Status:
Not open for further replies.

Share This Page

Loading...