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!
If a unit takes damage, deplete attacked unit of the same amount of mana
Already got the damage part done, just need to know how to get the exact amount of health damaged.
It's because you're using the "A unit is attacked" event, you need to be using the "A unit takes damage" event. You can't add it as a generic unit event, you need to add it as a specific unit event. The way I usually get around it is that I make a second trigger that goes like this:
Add Unit to Group
Events
Unit - A unit Is attacked
Conditions
((Triggering unit) is in UnitGroup_DamageEvent.) Equal to False
Actions
Unit Group - Add (Triggering unit) to UnitGroup_DamageEvent
Trigger - Add to Your ManaDamage Trigger <gen> the event (Unit - (Triggering unit) Takes damage)
The action you're looking for is called "Trigger - Add New Event"
It's because you're using the "A unit is attacked" event, you need to be using the "A unit takes damage" event. You can't add it as a generic unit event, you need to add it as a specific unit event. The way I usually get around it is that I make a second trigger that goes like this:
Add Unit to Group
Events
Unit - A unit Is attacked
Conditions
((Triggering unit) is in UnitGroup_DamageEvent.) Equal to False
Actions
Unit Group - Add (Triggering unit) to UnitGroup_DamageEvent
Trigger - Add to Your ManaDamage Trigger <gen> the event (Unit - (Triggering unit) Takes damage)
The action you're looking for is called "Trigger - Add New Event"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.