• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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 :)
 
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.
 
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
 
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.
Back
Top