Adding a behavior after 6 seconds without taking damage?

X-maul

AKA: Demtrod
Reaction score
201
I want to have a behavior X on a unit, that will start counting 6 seconds when it takes damage, and then add behavior Y to a unit, but if the unit takes damage while it is counting it should start over.

How can I do this?
(Also I want behavior X to only start counting if the unit does not have the behavior Y applied)
 

Dave312

Censored for your safe viewing
Reaction score
269
For Behaviour X:
- Set the duration to 6
- Set the Effect: Expire Effect to an effect which applies behaviour Y
- Check Refresh Stack under the Behaviour: Buff Flags + property
- Add a damage response with a chance of 100% where the Handled Effect is set to an effect which applies applies behaviour X

For Behaviour Y:
- Set the Effect: Effect - Final to an effect which applies Behaviour X
 

X-maul

AKA: Demtrod
Reaction score
201
It works as it should :) thanks Dave :)

EDIT: For some reason, the effect X applies the effect too all units that attack the unit with the behavior. I set the Handled Effect to the applying effect, and it works as it should on my unit.

What is causing this?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top