Cant figure out where to put "else"

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

Viito

Member
Oct 9, 2021
1
0
1
23
I want to put
Code:
else:
    send "&cYou cannot afford this item!"
for both ifs in this code but i cannot figure out how to do it (im using TuSke although it might not matter bcuz its just if and else)
Code:
if {balance::%uuid of player%} > 149:
    remove unbreakable shears of efficiency 3 named "&7Shears &b[&7Lvl &61&b]" from player's inventory
    remove 150 from {balance::%uuid of player%}
    give player unbreakable shears of efficiency 5 named "&7Shears &b[&7Lvl &62&b]"
    set {tier} to 3
    format gui slot 11 of player with unbreakable shears of efficiency 7 named "&7Shears &b[&7Lvl &63&b] &6$300" with lore "&7gained after purchase" to run:
        if {balance::%uuid of player%} > 299:
            remove unbreakable shears of efficiency 5 named "&7Shears &b[&7Lvl &62&b]" from player's inventory
            remove 300 from {balance::%uuid of player%}
            give player unbreakable shears of efficiency 7 named "&7Shears &b[&7Lvl &63&b]"
            set {tier} to 4
 
Status
Not open for further replies.