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

Trigger Request

Status
Not open for further replies.
Level 4
Joined
Jan 27, 2009
Messages
57
Hello, for my project i am in need of a trigger that does the following:

- When a unit-type casts an ability or die it will apply a debuff to targets in an AoE around him.
- While the units has the debuff, they will be taunting the surrounding enemies to attack them.

> Tried to add a Taunt ability and loop casting it, fitted the purpose (because that annoying auto stop-to-cast is welcome in this case) , but when a new unit casts the effects, with a previous one already running, it stops earlier with the cancellation trigger (cant transfer the Custom Value Of Unit to the other trigger, so i had to check all the values in a loop in the other trigger and, then, the first Custom Value it finds (that is already active) may not be the one i needed to stop the action, so it stops every unit suffering the effect).
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
I wont do it because I am lazy. However I can tell you how.

1. when unit dies add every unit around him into a unit group variable.
2. create a new trigger which fires every second or 0.5 seconds.
3. pick every unit in your unit group variable
4. detect units within X range of position of picked unit
5. order detected unit to attack
 
Level 4
Joined
Jan 27, 2009
Messages
57
Well, i just changed the way i was doing it.
Now a Dummy places a buff with the desired duration on the targets and, then, via another trigger, i order the units in the AoE desired to attack the target if he has the buff. It's working ok.
 
Status
Not open for further replies.
Top