• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Validator Question

Status
Not open for further replies.
Level 5
Joined
Oct 3, 2009
Messages
93
Alright, so here is my setup;

I have a unit that applies a behavior to all units on the team as long as the following validators are satisfied

Not Attacking
Not Moving

This all works fine, but I would like to be able to make the behavior have to wait a second or two before coming into effect again.

Currently the behavior cloaks a unit, the unit attacks, hits hold position so it isn't moving and becomes invisible instantly

I would like all of this, except that the behavior have to wait for it to become active again.

Thanks :)
 
Level 9
Joined
Dec 21, 2006
Messages
490
you should have an apply behavior effect in your effect chain. you simply add an create persistant effect with a starting delay in front of your apply behavior effect.
1.create a new create persistant effect, add it where now your apply behavior effect is , add a starting delay to it and add as starting effect your apply behavior effect.
2. you can also create an 2nd behavior with a duration of your choice that has an apply behavior effect after it runs out.
So you will add the dummy behavior first, the buff waits until the duration runs out and will add your hide buff then.

both strategies have advantages and disadvantages depending on your purpose.
 
Level 5
Joined
Oct 3, 2009
Messages
93
Could you perhaps provide an example, because I tried doing what I would assume to do and it refused to apply the effect that applies the behavior.

Basically I am using the motherships cloak and adding validators so units that attack lose the cloak and then I want them to have to wait a second or two until they recloak
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
When the unit is moving or attacking you give it a hidden behaviour which expires in X seconds (the delay before cloaking). This behaviour removes cloaking from the unit (it is cloaked all the time except when this behaviour is on it). The behaviour is added via another permanent behaviour that is active when the unit is either attacking or moving.
 
Status
Not open for further replies.
Top