Solved Why is my custom currency not working?

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

CreatarYT

Member
Jun 16, 2021
1
0
1
26
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:
command /buytrail <text> <player>:
    permission: "buytrail.*"
    trigger:
        if arg 1 is "lime":
            if {boughtlime.%arg 2%} is false:
                if {points::%arg 2%} >= 10:
                    send "&6Bought &alime trail&6!" to arg 2
                    subtract 10 from {points::%arg 2%}
                    set {boughtlime.%arg 2%} to true
                    set {limetrailequiped.%arg 2%} to true
                else:
                    send "toobroke" to arg 2
            if {boughtlime.%player%} is true:
                if {limetrail.equiped.%arg 2%} is false:
                    send "&6Equipped &alime trail&6!" to arg 2
                    set {limetrail.equiped.%arg 2%} to true
                else:
                    send "&6Unequipped &alime trail&6!" to arg 2
                    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
 
Last edited:
Status
Not open for further replies.