- Joined
- Dec 5, 2009
- Messages
- 846
What's wrong with this trigger? you can see what i want to do. I want the Destructible to dmg when it dies.
-
Events
-
Destructible - A destructible within (Entire map) dies
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Destructible-type of (Dying destructible)) Equal to Rock Wall (Vertical)
-
-
Then - Actions
-
Set SW_Point = (Position of (Dying destructible))
-
Set SW_Group = (Units within ((Real((Level of Stone Wall for SW_Caster))) x 150.00) of SW_Point matching (((Matching unit) belongs to an enemy of (Owner of SW_Caster)) Equal to True))
-
Unit Group - Pick every unit in SW_Group and do (Actions)
-
Loop - Actions
-
Unit - Cause SW_Caster to damage (Picked unit), dealing ((Real((Level of Stone Wall for SW_Caster))) x 100.00) damage of attack type Spells and damage type Normal
-
-
-
-
Else - Actions
-
-
Custom script: call RemoveLocation (udg_SW_Point)
-
Custom script: call DestroyGroup (udg_SW_Group)
-