Armour equip event not working

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

Void YT

Member
Aug 12, 2023
1
0
1
25
Hello, I have installed SharpSK, and I am trying to make armour add a stat when equipped and remove it when unequipped. The unequipping event works removes the stat when unequipped, but the equip event doesn't seem to be adding the stat. Can anyone help? No errors are displayed when reloading the script.

Code:

on armour equip:
if name of player's chestplate is "&9Test":
add 1000 to {maxmana.%player%}

on armour unequip:
if name of player's chestplate is "&9Test":
add -1000 to {maxmana.%player%}
 
Add some debug messages to your code. So in the event that isn't working:
message "%name of player's chestplate%"
Try and figure out what might be causing that if to not pass.