QUOTE(Killer_Kow(MM) @ Nov 22 2006, 01:40 PM)
There are EUD conditions that can detect health, if I remember correctly...
Make your unit's attack have 1 less damage than the enemy's health, and detect (via EUDs) that health loss, and do the effect, using a switch/deathcount to make sure it only happens once.
Its a tad impractical, but it could work :/
[right][snapback]593412[/snapback][/right]
Something like this would be VERY bad, you need to know the unit ID(is that the right term?), the unit itself(i think), the player owner(i think), plus the specific setting itself. there are 1700 potential unit IDs, a whole bunch of units, plus up to a hundred triggers per unit.
so, its like this:
1700 X how many unit types you have X number of applicable players X 100 = a very ugly amount of triggers for this to work
not to mention, it only tells you if a unit has the amount of HP, not which unit has the amount of HP, so, for instance, if P1 has 2 marines, it'd be VERY difficult to find which marine the triggers were detecting for.
QUOTE(Koltz @ Nov 22 2006, 04:22 PM)
If its one-hit-kills, Make it so that, if kills score is at least 1, play wav, set kill score to 0
[right][snapback]593494[/snapback][/right]
wtf is that supposed to do... play a sound...cause that'd be the least of his worries