Hi!
So I want to make a trigger that casts a bounce spell but only to heroes between 400 and 1200 radius around the boss.
Any ideas/advice?
So I want to make a trigger that casts a bounce spell but only to heroes between 400 and 1200 radius around the boss.
-
CastBlisteringCold
-
Events
-
Time - Every 20.00 seconds of game time
-
-
Conditions
-
Actions
-
Set VariableSet BC_TempTargets = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 4 (Purple).) Equal to True)))
-
Unit Group - Pick every unit in BC_TempTargets and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is in (Units within 400.00 of (Position of Araj_Entity_Exist).).) Equal to False
-
((Picked unit) is in (Units within 1200.00 of (Position of Araj_Entity_Exist).).) Equal to True
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to BC_TargetGroup
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in BC_TargetGroup) Greater than 0
-
-
Then - Actions
-
Set VariableSet BC_RandomTarget = (Random unit from BC_TargetGroup)
-
Unit - Order Araj_Entity_Exist to Undead Lich - Frost Nova BC_RandomTarget
-
-
Else - Actions
-
-
Custom script: call DestroyGroup(udg_BC_TempTargets)
-
Custom script: call DestroyGroup(udg_BC_TargetGroup)
-
-
Any ideas/advice?