I'm trying to make an item blow up on death. Right now this is my trigger but for some reason it doesn't work. Since there are no Event Item Dies or Event Item attacks or event anything to do with items besides using them, I made this, and it seems like it should fire but doesn't.
The item Health is so high because if it dies from a single attack it won't fire the trigger, this way it makes up for the chance that would happen.
-
DetonateFuel
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Item - Pick every item in (Playable map area) and do (Actions)
-
Loop - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Picked item)) Equal to Fuel
-
(Current life of (Picked item)) Less than or equal to 990.00
-
-
Then - Actions
-
Game - Display to (All players) the text: Item Trigger Fired
-
Item - Remove (Picked item)
-
Set TempHeroPoint = (Position of (Picked item))
-
Unit - Create 1 MolotovDummy for Neutral Hostile at TempHeroPoint facing Default building facing degrees
-
Unit - Create 1 Goblin Land Mine for Neutral Hostile at TempHeroPoint facing Default building facing degrees
-
Unit - Add a 8.00 second Generic expiration timer to (Last created unit)
-
Set TempUnit2 = (Last created unit)
-
Unit - Order TempUnit2 to Human Blood Mage - Flame Strike TempHeroPoint
-
Custom script: call RemoveLocation( udg_TempHeroPoint)
-
-
Else - Actions
-
-
-
The item Health is so high because if it dies from a single attack it won't fire the trigger, this way it makes up for the chance that would happen.