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 Clicker Not Working (Variables)

Discussion in 'Skript' started by ThatPerson, Aug 27, 2019.

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

    ThatPerson Member

    Joined:
    Aug 27, 2019
    Messages:
    4
    Likes Received:
    0
    when I do /bal even after clicking with the button it shows <none> anyone know? Skript:

    Code (Text):
    1. options:
    2.     money: 0
    3.     price: 10
    4. command /start:
    5.     trigger:
    6.         if {start.%player%} is not set:
    7.             send "&b---Start---"
    8.             give 1 oak button named "&b&lClicker Button" to player
    9.             set {start.%player%} to true
    10.             stop
    11.         send "&4&lYou Have Started Already!"
    12. command /restartpl <player>:
    13.     permission: clicker.admin
    14.     trigger:
    15.         delete {start.%argument%}
    16.         send "&4&lRestarted %argument% &4&lthey can now use /start again" to player
    17. on right click with oak button:
    18.     uncolored name of tool is "Clicker Button":
    19.         cancel event
    20.         send "&b Click " to player
    21.         add {cpc.%player%} to {money.%player%}
    22. on left click with oak button:
    23.     uncolored name of tool is "Clicker Button":
    24.         cancel event
    25.         send "&b Shop Opened " to player
    26.         make console execute command "/execute at %player% run playsound minecraft:block.note_block.pling ambient %player% ~ ~ ~ 100 1"
    27.      
    28.         open chest with 1 row named "&cShop" to player
    29.         wait 1 tick
    30.         format slot 0 of player with red glass named "&4&lClose" to close
    31. command /addcps:
    32.     trigger:
    33.         if {money.%player%} is more than or equal to {price.%player%}:
    34.             send "&b&lUpgraded!" to player
    35.             add 1 to {cpc.%player%}
    36.             remove {price.%player%} from {money.%player%}
    37.             add 10 to {price.%player%}
    38.             stop
    39.         send "Not Enough Money!"
    40. command /bal:
    41.     trigger:
    42.         send "%{money.player}%" to player
    --- Double Post Merged, Aug 27, 2019, Original Post Date: Aug 27, 2019 ---
    Got Help from discord :emoji_grinning:
     
Thread Status:
Not open for further replies.
Loading...