Solved Apply effect

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

slxshxr

Member
Jul 28, 2018
11
0
0
24
How i can apply effect for x time, but not adding to actual time.
Example:
code_language.skript:
on damage:
    if attacker's tool is diamond sword named "asd":
        apply weakness 2 to victim for 5 seconds

Every 1 attack it adds 5 seconds to actual weakness time.
 
code_language.skript:
on damage:
    attacker's tool is diamond sword named "asd"
    remove weakness from victim
    apply weakness 2 to victim for 5 seconds