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!
I got problem with missed trigger. In my translation there is no "unit takes damage" trigger, but there is variable Damage Taken. Can any of you help me?
WC3 doesn't have any "A unit takes damage", there's an Event which is "A unit is attacked" but the attack begins before the damage is dealt, so it can be abused. There are Damage Detection Systems in the Spell Section wich you can use to detect damage dealt, damage source and damaged unit (and one of them detects damage type) and there you can use the trigger with a "A unit Takes damage" event or something like that (each system has its way to work).
When you use "A unit is attacked" EVENT you can use EVENT RESPONSE - DAMAGE TAKEN as a part of your action, but is not an event itself, it's one of the values that can be used as a response of an event.
You can use this system, or this system to detect when damage is dealt and work with it.
Damage taken on unit is attacked is always 0, of course, no damage is dealt yet. There is no Generic Unit Event for Takes Damage but Specific Unit. You can create new events during runtime using Trigger - Add New Event.
There is no way to check the type of damage taken in response to a damage taken event. You can only get things like the damage dealt, the damage source and the damaged unit.
Positive. You can use attack types and damage types when applying damage via trigger but the Unit takes Damage-event does not provide which attack/damage type triggered it. If you deal the damage via trigger, you can store it yourself in global/variables/hashtable/etc to transfer it.
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.