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 Why is my custom currency not working?

Discussion in 'Skript' started by CreatarYT, Jun 16, 2021.

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

    CreatarYT Member

    Joined:
    Jun 16, 2021
    Messages:
    1
    Likes Received:
    0
    Jello! I am working on a trail system and I was working on the /buytrail command. The skript has been succesfully reloaded but it doesn't work. here is the skript
    Code (Text):
    1. command /buytrail <text> <player>:
    2.     permission: "buytrail.*"
    3.     trigger:
    4.         if arg 1 is "lime":
    5.             if {boughtlime.%arg 2%} is false:
    6.                 if {points::%arg 2%} >= 10:
    7.                     send "&6Bought &alime trail&6!" to arg 2
    8.                     subtract 10 from {points::%arg 2%}
    9.                     set {boughtlime.%arg 2%} to true
    10.                     set {limetrailequiped.%arg 2%} to true
    11.                 else:
    12.                     send "toobroke" to arg 2
    13.             if {boughtlime.%player%} is true:
    14.                 if {limetrail.equiped.%arg 2%} is false:
    15.                     send "&6Equipped &alime trail&6!" to arg 2
    16.                     set {limetrail.equiped.%arg 2%} to true
    17.                 else:
    18.                     send "&6Unequipped &alime trail&6!" to arg 2
    19.                     set {limetrail.equiped.%arg 2%} to false
    I keep getting the "toobroke" message while my {points::%player%} are 30'

    EDIT: I got some help on discord and it turns out I just had to change the /setpoints command to number and not text
     
    #1 CreatarYT, Jun 16, 2021
    Last edited: Jun 17, 2021
Thread Status:
Not open for further replies.

Share This Page

Loading...