• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Missed Triggers

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
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).
 
Level 9
Joined
Nov 19, 2011
Messages
516
I can't find any spell/ability that can detect damage type or source. Or maybe you mean Harden Skin and use it as "A unit uses ability"?

And by the way. Why there is such descreption that tells there is "Unit takes damage"?
109168d1324582043-guilds-hyppos-rpg-v1-22e-dmagetaken.gif
 
Last edited:
Level 20
Joined
Jul 14, 2011
Messages
3,213
That's an Event Response - Damage Taken.
Read again: Event Response...
EVENT response...
EVENT.... response...

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.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Dont Double Post :) use the Edit Button instead.

Depends on which system you're using... GUI Friendly Damage Detection... or Damage Engine.. or WC3 system (which works only with specific unit events)
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
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.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
So can you tell me for hell in 'Damage Target/Area' acctions there are variables attack type and damage type?
So your damage can interact like real damage and get reduced by armor types, armor quantity and resistances appropiatly.

This has nothing to do with the fact that the unit takes damage event has no responses to get those fields.
 
Status
Not open for further replies.
Top