1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Slowness instead of Fall damage

Discussion in 'Skript' started by Ter2FIc, Dec 24, 2021.

Thread Status:
Not open for further replies.
  1. Ter2FIc

    Ter2FIc Member

    Joined:
    Dec 30, 2020
    Messages:
    20
    Likes Received:
    0
    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 (Text):
    1. on damage:
    2.     if victim is player:
    3.         if damage was caused by fall:
    4.             set {damage::%player%} to damage
    5.             cancel event
    6.             apply slowness 5 to victim for % {damage::%player%} x 3 % seconds
     
  2. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    73
    Likes Received:
    5
    this should work
    Code (Text):
    1. on damage of player:
    2.   if damage cause is fall:
    3.     cancel event
    4.     set {_time} to damage * 3
    5.     apply potion of slowness of tier 5 to last victim for {_time} seconds
     
Thread Status:
Not open for further replies.

Share This Page

Loading...