HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What can detect a stasis ward?

04-16-2007, 02:52 PM#1
darkwulfv
I have a spell that kicks in when a unit comes within range of a designated point (where a trap is set.) I'm going to use stasis ward as the dummy trap, since it activates upon a unit coming within a certain range. I'm wondering if there is a trigger event that catches the stasis ward going off. Or any relatively simple method for doing so will work too. Thanks.
04-17-2007, 01:16 PM#2
blu_da_noob
Assuming it has a duration, you could do something like attach a value to it (user data?) indicating that it if it currently dies it will have been triggered. 0.01 seconds before the duration ends, change this flag to indicate it dying to duration. Then have a 'A unit dies' trigger which checks that the dying unit is of the type of your ward, that the flag is set to the 'is triggered' setting and that the killing unit == null (or No Unit for GUI) to make sure that it wasn't killed by attacks.

Edit: just to mention, if it has no duration you just need the trigger and the killing unit condition
04-17-2007, 01:54 PM#3
Toink
Goblin Land mine also works with blu's suggestion.
04-17-2007, 07:39 PM#4
darkwulfv
Thanks, but I changed the spell not to need a stasis ward =P.

But if I ever need to know, I'll know now.