Hello all,
The goal of this ability is for a hero to teleport but only with a select few units.
The base spell is mass teleport (Sauron's Will) but it will only teleport one unit.
I am not confident with triggers, does this look right?
Or is there a simpler way?
The goal of this ability is for a hero to teleport but only with a select few units.
The base spell is mass teleport (Sauron's Will) but it will only teleport one unit.
I am not confident with triggers, does this look right?
Or is there a simpler way?
-
SWill
-

Events
-


Unit - A unit Finishes casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Sauron's Will
-
-

Actions
-


Set VariableSet SWill_Caster = (Triggering unit)
-


Set VariableSet Swilltempp = (Position of SWill_Caster)
-


Set VariableSet SWill_ug = (Units within 1200.00 of Swilltempp.)
-


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



Loop - Actions
-




Set VariableSet FEtempu = (Picked unit)
-




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





If - Conditions
-






And - All (Conditions) are true
-







Conditions
-








(Swill_tempu is alive) Equal to True
-








(Swill_tempu belongs to an ally of Player 21 (Coal).) Equal to True
-








Or - Any (Conditions) are true
-









Conditions
-
-








(Unit-type of Swill_tempu) Equal to The Easterling
-








(Unit-type of Swill_tempu) Equal to Nazgul
-
-
-
-





Then - Actions
-






Unit - Move Swill_tempu instantly to (Target point of ability being cast)
-
-





Else - Actions
-
-




Custom script: call RemoveLocation(udg_Swilltempp)
-




Custom script: call DestroyGroup(udg_Swill_ug)
-
-
-
-





