- Joined
- Jul 31, 2012
- Messages
- 2,217
I'm making a spell that makes units in an AoE fall asleep now here is the trigger i made bu it only make one target sleep
-
Dreamcast
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Dreamcast
-
-

Actions
-


Set temp_location = (Target point of ability being cast)
-


Custom script: set bj_wantDestroyGroup = true
-


Special Effect - Create a special effect at temp_location using war3mapImported\MagicExplosion.mdx
-


For each (Integer A) from 1 to (Number of units in (Units within (20.00 + (60.00 x (Real((Level of (Ability being cast) for (Triggering unit)))))) of temp_location)), do (Actions)
-



Loop - Actions
-




Unit - Create 1 Dreamcast for (Owner of (Triggering unit)) at temp_location facing Default building facing degrees
-




Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-




Set temp_Unit = (Random unit from (Units within (20.00 + (60.00 x (Real((Level of (Ability being cast) for (Triggering unit)))))) of temp_location matching (((Matching unit) is in temp_Unit_Group) Equal to False)))
-




Custom script: call IssueTargetOrderBJ( GetLastCreatedUnit(), "sleep", udg_temp_Unit )
-




Unit Group - Add temp_Unit to temp_Unit_Group
-
-
-


Custom script: set udg_temp_Unit = null
-


Custom script: call RemoveLocation(udg_temp_location)
-
-







