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.

Solved Prestige fix

Discussion in 'Skript' started by thomas_nietoke, Mar 1, 2019.

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

    Joined:
    Feb 26, 2019
    Messages:
    29
    Likes Received:
    0
    This is my skript:
    command /prestige:
    trigger:
    {gold::%player%} >= 100
    broadcast "%player% has prestiged!"
    set {gold::%player%} to 0
    add 1 to {prestige::%player%}
    {gold::%player%} <= 100
    message "&7You need 100 gold to prestige!" to player
    Can anyone fix this for me please? When i prestige it says You need 100 gold to prestige! But i want it so it messages to you when you have under 100 gold.
     
  2. Best Answer:
    Post #2 by couger44, Mar 1, 2019
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    From what I understand, I think it would be something like this:

    Code (Text):
    1. command /prestige:
    2.    trigger:
    3.       {gold::%player%} >= 100:
    4.           broadcast "%player% has prestiged!"
    5.           set {gold::%player%} to 0
    6.           add 1 to {prestige::%player%}
    7.           stop
    8.       {gold::%player%} < 100:
    9.           message "&7You need 100 gold to prestige!" to player
    --- Double Post Merged, Mar 1, 2019, Original Post Date: Mar 1, 2019 ---
    In your code, you had placed "if it was equal to or greater than 100 prestige", but also put "if it was equal to or less than 100 send a message that could not make prestige" and that causes the "error"
     
    • Like Like x 1
  4. thomas_nietoke

    Joined:
    Feb 26, 2019
    Messages:
    29
    Likes Received:
    0
    Thanks
     
Thread Status:
Not open for further replies.

Share This Page

Loading...