HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger that only triggers on Goblin Mine Explosion

02-24-2007, 05:11 AM#1
SuperDuperGuy
I'm tring to make a trigger that only triggers when a Goblin Land Mine goes off. Unfortunatly on unit death triggers if it was killed (which it shouldnt go off) and when it explodes. I can't make the game tell the difference. Anyone know a way to do this?
02-24-2007, 07:04 AM#2
blu_da_noob
Condition - Killing Unit equal to No Unit

Something like that should work.
02-24-2007, 07:06 AM#3
Pyrogasm
There's actually an ability that goes off when the mine dies, if I remember correctly. I think it's called "AoE Damage Upon Death (Goblin Land Mine)"
02-25-2007, 06:12 AM#4
SuperDuperGuy
The Goblin Mine doesn't seem to be considered the killing unit. And the Event for the ability (Goblin Land Mine Ability) doesn't fire a trigger when it is used.

I seem to have two options so far....

Say if there was no killing unit, assume that it was set off. Only problem with this is that if a unit kills the mine somehow after it is dead (very unlikely, might as well have the trap trigger anyway in that case)

Or...

Test to see if the mine is visible. It turns visible just before it explodes, may be a bit premature trap trigger, but oh well.
02-25-2007, 11:37 AM#5
Softmints
Quote:
Say if there was no killing unit, assume that it was set off. Only problem with this is that if a unit kills the mine somehow after it is dead (very unlikely, might as well have the trap trigger anyway in that case)

What do you mean by, killing it once it's dead. It won't die twice unless you ressurect it, which I assume you do not plan on doing. As long as there is no killing unit, you can safely assume the mine has activated on its own.
02-25-2007, 06:06 PM#6
SuperDuperGuy
I mean the killing unit, say any other unit, some unit that has an ability that dealt damage long after he was dead to the land mine. For example:

Unit casts some spell on Mine.
Unit dies and decays (say his body was turned into a skeleton)
Ability Unit cast on Mine deals damage killing the Mine

In this case, the killing unit is dead and gone, thus would register as no unit killing the Mine. In which case I would trigger the trap effects, because I wouldn't know if the Mine triggered, or if the killing Unit (some other unit that died) was already dead. It think this is going to be a rare case, I don't think any abilities will effect wards like that.
02-26-2007, 02:09 AM#7
Av3n
Tried an event like sumthing like this Unit health equal to 0.01 or something like that or similar

-Av3n