- Joined
- May 25, 2006
- Messages
- 13
Iv tryed everyway i know how to pick units that are enemey only, and when i do the loop functions make the spell damage the units too much. please, i need a way to Pick enemy units in a regen and damage them one time
my latest attempt below
Unit Group - Pick every unit in (Units in (Region(hero_ghost_tri_temmpoint[0], hero_ghost_tri_temmpoint[2]))) and do (Actions)
Loop - Actions
Player Group - Pick every player in (All allies of (Owner of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Picked player)
Then - Actions
For each (Integer A) from 1 to 50, do (Actions)
Loop - Actions
Set hero_ghost_tri_target[(Integer A)] = (Picked unit)
Unit - Cause (Casting unit) to damage hero_ghost_tri_target[(Integer A)], dealing (300.00 + (Real((Level of (Ability being cast) for (Casting unit))))) damage of attack type Spells and damage type Normal
Else - Actions
Do nothing
my latest attempt below
Unit Group - Pick every unit in (Units in (Region(hero_ghost_tri_temmpoint[0], hero_ghost_tri_temmpoint[2]))) and do (Actions)
Loop - Actions
Player Group - Pick every player in (All allies of (Owner of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Picked player)
Then - Actions
For each (Integer A) from 1 to 50, do (Actions)
Loop - Actions
Set hero_ghost_tri_target[(Integer A)] = (Picked unit)
Unit - Cause (Casting unit) to damage hero_ghost_tri_target[(Integer A)], dealing (300.00 + (Real((Level of (Ability being cast) for (Casting unit))))) damage of attack type Spells and damage type Normal
Else - Actions
Do nothing