• 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] Is there a way to detect type of damage received?

Status
Not open for further replies.
Level 12
Joined
Mar 16, 2006
Messages
992
the title says everything... i want a condition that checks if the damage received by a unit (event = "X unit takes damage") is of type physical

can this be done in gui? i couldn't find it :/

If there wasn't a shortcut, I'd say it'd involve a ton of triggers involving IF unit = type, and ability being cast =, etc-ing. And just sorting them accordingly.
 
Level 11
Joined
Dec 31, 2007
Messages
780
my point is ... i have the triggers... but i need to know if the damage received is made by my hero's hand or by a passive mana burn ability given by an item... that is why i want to add a condition that says "type of damage taken == Physical" but i dont know if such condition exists :/ (at least i couldnt find one)
 
Level 11
Joined
Dec 31, 2007
Messages
780
when my hero attacks a unit i add the attacked unit to a damage detection trigger using the "add new event" accion... i add the "unit takes damage" and by "unit" i use "attacked unit" (actually a variable :p) all this is ment to work as a passive ability that makes a dummy cast slow to the target when it takes damage dealt by my hero

the way the trigger is done might be affected by the spells my hero uses (for i.e. if he attacks but doesnt damage the target and then casts an ability the damage detection is triggered all the same) so if he casts one of his skills i turn off the trigger of the pasive ability (has anything to do with mana burn)

But... if my hero has this item that adds the mana burn passive ability sometimes the trigger works weird...

thats why i want to know if the type of damage received by the target is magical or physical...

btw... the condition "ability being cast = mana burn" will detect the mana burn passive ability?

i dont know if ive been clear enough if you guys want to know what i did... ill post my triggers here
 
Status
Not open for further replies.
Top