can someone fix my simple skript

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

WestinGames

New Member
Feb 12, 2022
8
0
1
16
Error: Can't understand this event


Code:

on armor equip:
if lore of event-item contains "&6&lCrown":
trigger:
set player's max health to 40
set player's health to 40
 
this should work:

Code:
on armor equip:
    if lore of event-item contains "&6&lCrown":
        set player's max health to 40
        set player's health to 40

but just so you know, it's making the player's health to 40 every time the player equips the crown so if the player spam equips the crown, they will basically never die.
 
this should work:

Code:
on armor equip:
    if lore of event-item contains "&6&lCrown":
        set player's max health to 40
        set player's health to 40

but just so you know, it's making the player's health to 40 every time the player equips the crown so if the player spam equips the crown, they will basically never die.
only set the max health, the actual health will regen over time
 
Status
Not open for further replies.