Solved How do you reset a variable?

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

Marc

Active Member
Nov 27, 2020
94
0
8
17
Im trying to make a command that resets your 'clicks'
Code:
variables:
{click} = 0

on right-click:
if event-block is hay bale:
add 1 to {click}
send message "+1" to player

command /click:
trigger:
message "Amount: %{click}%"

command /resetclick:
aliases: /rc
permission: rc.command
permission message: No permission to use rc.command!
trigger:
reset {click} to 0

Obviously this doesnt work
[doublepost=1606535248,1606535168][/doublepost]Lol nvm just had to say set instead of reset
 
Status
Not open for further replies.