- Joined
- Mar 13, 2013
- Messages
- 299
I'm trying to change incinerate to do aoe damage on hit rather on death. Here's what I have:
-
Incinerate init
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


And - All (Conditions) are true
-



Conditions
-




(Unit-type of (Attacking unit)) Equal to Firelord
-




(Level of Incinerate (Arrow) for (Attacking unit)) Greater than 0
-
-
-
-

Actions
-


Trigger - Add to Incinerate <gen> the event (Unit - (Attacked unit) Takes damage)
-
-
-
Incinerate
-

Events
-

Conditions
-

Actions
-


Unit Group - Pick every unit in (Units within 200.00 of (Position of (Attacked unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True)) and do (Actions)
-



Loop - Actions
-




Unit Group - Add (Picked unit) to grp
-
-
-


Set x = (Number of units in grp)
-


Unit Group - Pick every unit in grp and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Level of Incinerate (Arrow) for (Attacking unit)) Equal to 1
-
-





Then - Actions
-






Set y = (Min(3.00, (45.00 / (Real(x)))))
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Level of Incinerate (Arrow) for (Attacking unit)) Equal to 2
-
-







Then - Actions
-








Set y = (Min(8.00, (45.00 / (Real(x)))))
-
-







Else - Actions
-








Set y = (Min(15.00, (45.00 / (Real(x)))))
-
-
-
-
-




Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - y)
-
-
-


Unit Group - Remove all units from grp
-
-




















