- Joined
- May 27, 2008
- Messages
- 62
Hmmm Im not sure how to remove one unit group... I have arrayed it so it would look like this
And if you find leaks please then tell me
-
For each (Integer DarkIndex[3]) from 1 to DarkIndex[2], do (Actions)
-
Loop - Actions
-
Unit - Order DarkCaster[DarkIndex[3]] to Right-Click DarkTarget[DarkIndex[3]]
-
Set DarkCheck[DarkIndex[3]] = (Units within 100.00 of (Position of DarkTarget[DarkIndex[3]]))
-
Unit Group - Pick every unit in DarkCheck[DarkIndex[3]] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked unit) Equal to DarkCaster[DarkIndex[3]]
-
-
Then - Actions
-
Unit - Cause DarkCaster[DarkIndex[3]] to damage DarkTarget[DarkIndex[3]], dealing (Real((Level of Dark Cut for DarkCaster[DarkIndex[3]]))) damage of attack type Spells and damage type Normal
-
Custom script: call DestroyGroup( udg_DarkCheck[DarkIndex[3]] )
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
And if you find leaks please then tell me