HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Event if a unit is hit by orb of lighting purge?

06-16-2004, 04:20 PM#1
GaDDeN
Ok i'm working on a skill that is based on orb of lightning, it gives a chance to slow the enemy unit just like orb of lightning. But now i want to add a trigger effect which pulls the unit toward the attacker. I made a trigger like "for every integer a between 1 to 100 do this move instantly 1 toward attacker" , and i KNOW that trigger works as i have done it before. But the problem is the event, how to check when the unit "purges" with its ability.

How to do it?
06-16-2004, 11:14 PM#2
th15
It doesn't fire an event, just like all passive abilities. However, in your case there is a possible workaround. The Purge effect leaves a buff. So what you might want to do is have a trigger that picks all units in the map and detects if the unit has the purge buff each time a few seconds after a unit is attacked by that unit.
06-17-2004, 08:05 AM#3
GaDDeN
Ah yes im kinda stupid... when i got the idea myself to check for buff, i changed the whole skill to bash instead :D. But purge is a buff too... thanks :P
06-17-2004, 11:11 AM#4
Milkman
Or you could do something like:

Unit is attacked

Attacking unit has item in inventory Orb of Purge

Bla bla bla


I'm not sure if that conditions exist but i believe it does and if it does it kinda solves the problem aswell. The buffs might be a better idea all around anyways...
06-17-2004, 12:53 PM#5
GaDDeN
Ah milkman, the problem was to detect if the item purged (% chance), not checking if the attacking unit had the item :D

There is a way to detect this as i found in the FAQ, but nvm i used bash instead.