TuSKe subtract/add to variables

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

WolfyGameYT

Member
May 29, 2020
11
0
1
Is there a way to add/subtract from a variable? For example: create a gui slot 25 of arg-2 with redstone block named "&aRemove 64" to subtract 64 from {buy.%arg-2%} (On the parser, it says it doesn't work)
 
The easiest way may be this:
Code:
create a gui slot 25 of arg-2 with redstone block named "&aRemove 64" to execute console command "test %arg-2%"

command /test [<offline player>]:
    executable by: console
    trigger:
        remove 64 from {buy.%arg-1%}
        send "Done." to arg-1
 
Status
Not open for further replies.