• 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] Damage Type Restriction Check possible?

Status
Not open for further replies.
Level 4
Joined
Sep 26, 2005
Messages
40
I have a trigger that acts on the event of a unit receiving damage; the "takes damage" event.

The trigger works when certain units damage that unit but i dont want that trigger to go off on certain types of damage. particularly "poisoned" and "plagued"

but currently the trigger keeps reacting to the poison or plague every second that those buffs deal damage per second.

Can i restrict this? I've been looking for a while, hoping to find something like a condition that is like "damage type event response to "takes damage" event is not equal to poisoned/plagued"


any ideas?
 
Level 8
Joined
Sep 13, 2006
Messages
431
Sadly, no good ideas. Only thing that comes to mind is a boolean classification check, checking whether the damaged unit is plagued/poisoned. But that would not be a very good solution, as the trigger wouldn't fire for ANY damaging units when the damaged unit was plagued or poisoned.

Sorry I couldn't be of more help...
 
Level 4
Joined
Sep 26, 2005
Messages
40
darn. that's too bad. bliz needs to add this kind of thing to their editor.

it's not that hard for them. then i could simply say

event:
Unit Takes Damage
condition:
damaged unit received damage type equal/not equal to poisoned/plagued/stunned or whatever

does any jass/custom script exist that queries something like this that doesn't exist in gui?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
YES you can to a degree of accuracy.

You can estimate the damage plague and poision will do and if it is in that range, it does nothing but if the damage is greater than the estimated ammount, it works.

Since something like frost nova will deal 200 damage or more to a target unit but plauge will only do about 1 or 2 and thus you can detect it by looking at the damage received. To make it more accurate you only need to use the damage range check if the unit has the buff of poision or plague so that no shots that are meant to work but deal little damage do not work. Ofcourse if your map features weak units it might fail when it is meant to work but overall this method is the most accurate.
 
Status
Not open for further replies.
Top