#start a timer when a variable changes

1 messages · Page 1 of 1 (latest)

rotund ivy
#

hey, i've been stuck on this thing for a while, so basically i have a simple strength chaining skript:

    attacker is player
    victim is player
    add 1 to {strchainingstate::%attacker%}```

and i want to start a 8 second timer WHEN the variable "{strchainingstate::%player%}" changes, after these 8 seconds, it changes the variable to -1
rotund ivy
#

PLZ HELP

tidal forge
#

set a temp value to its newly changed value

#

ex 4 -> 5, set temp to 5

#

wait 8 seconds

#

if var doesnt equal temp, reset

#

might want to change equal to greater than, if you want the cooldown to reset every time they get a hit