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

skanto123

Active Member
Jan 8, 2018
70
0
0
34
ok so how do I make it so if {space.helmet.loop-player} {space.chestplate.loop-player} {space.leggings.loop-player} and {space.boots.loop-player} is true it sets {space.armor.loop-player} to true
then when player equips diamond armor named "space" so helmet chestplate leggs and boots it sends "enabled" to player only once and when they remove 1 armor piece it sends "disabled"
 
Hey, give this a try.

code_language.skript:
on equip:
    if {space.helmet.%player%} is true:
        if {space.chestplate.%player%} is true:
            if {space.leggings.%player%} is true:
                if {space.boots.%player%} is true:
                    set {space.armor.%player%} to true
                    send "ENABLED" to player

I believe the on equip event uses the SharpSK addon
 
Hey, give this a try.

code_language.skript:
on equip:
    if {space.helmet.%player%} is true:
        if {space.chestplate.%player%} is true:
            if {space.leggings.%player%} is true:
                if {space.boots.%player%} is true:
                    set {space.armor.%player%} to true
                    send "ENABLED" to player

I believe the on equip event uses the SharpSK addon
I have SharpSK but says it cannot understand the event on equip
 
Status
Not open for further replies.