So I am trying to make a skript where you can get Broken legs If a player falls or takes a certain amount of damage from a fall to cause a chat notificaion to pop up on their end saying "You'd feel a sharp pain in your leg as it snapped" and apply a slowness effect for about 10s and maybe nausea effect for 5s but I keep getting this error
Posted by: csulaaa from the skUnity Discord. View the thread on skUnity Discord here
code_language.skript:
on damage:
if cause is falling and event-entity is a player:
set {_damage} to event-damage
if {_damage} is greater than or equal to 3: # Adjust the value as needed
send "&cYou'd feel a sharp pain in your leg as it snapped" to event-entity
apply slowness of level 1 to event-entity for 10 seconds
apply nausea of level 1 to event-entity for 5 seconds
Posted by: csulaaa from the skUnity Discord. View the thread on skUnity Discord here