{tokensbal::%player%}

  • 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 community!

    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.

skanto123

Active Member
Jan 8, 2018
70
0
0
options:
{tokensbal::%player%} = 0

how do I make it so if a player has 1 {tokensbal::%player%} that it takes 1 away from the player and gives him 1 dirt block ??
 
options:
{tokensbal::%player%} = 0

how do I make it so if a player has 1 {tokensbal::%player%} that it takes 1 away from the player and gives him 1 dirt block ??
1. Options is for like calling a message when you call it. Example
Prefix: hello
Message “{@prefix}”
You want variable so change options with variable.

2. Do you want the player to execute a command and it gives the player dirt or is it going to be automatic?
 
Yeah, if you have it in the variable, you don't need it as an option. the variable is already holding the info.
code_language.skript:
if {tokensbal::%player%} = 1:
    give player 1 dirt block
    remove 1 from player's balance
 
Status
Not open for further replies.