Slowness instead of Fall damage

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

Ter2FIc

Member
Dec 30, 2020
20
0
1
24
I am trying to give player slowness instead of fall damage and I want to make slowness V for fall damage x 3 seconds.
Code:
on damage:
    if victim is player:
        if damage was caused by fall:
            set {damage::%player%} to damage
            cancel event
            apply slowness 5 to victim for % {damage::%player%} x 3 % seconds
 
this should work
Code:
on damage of player:
  if damage cause is fall:
    cancel event
    set {_time} to damage * 3
    apply potion of slowness of tier 5 to last victim for {_time} seconds
 
Status
Not open for further replies.