Hi. I'm a recent scrub to WE and been messing around. I made this trigger for a custom Mass Teleport to affect surrounding allied heroes instead of your own units. I want to make it that if the Caster does aynthing besides standing in one place, the trigger will cancel. It'll basically act like a normal channeling spell. I'll also post a Video Example of it just incase. But yeah, big thanks if someone can help me with this!
Mass TP OG
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Jaina's Mass Teleport
Actions
Set VariableSet MassTPUnit = (Casting unit)
Set VariableSet MassTPUnitAOE = (Position of MassTPUnit)
Set VariableSet MassTPTarget = (Target point of ability being cast)
Unit - Create 1 TP Dummy (Jaina) for (Owner of (Casting unit)) at MassTPUnitAOE facing Default building facing degrees
Animation - Change (Last created unit)'s animation speed to 400.00% of its original speed
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 5.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(MassTPUnit is alive) Equal to True
(MassTPUnit has buff Stunned (Pause)) Equal to False
(MassTPUnit has buff Sleep (Stun)) Equal to False
(MassTPUnit has buff Stunned) Equal to False
(MassTPUnit has buff Entangling Roots) Equal to False
Then - Actions
Unit Group - Pick every unit in (Units within 400.00 of MassTPUnitAOE matching ((((Matching unit) belongs to an ally of (Owner of MassTPUnit).) Equal to True) and (((Unit-type of (Matching unit)) is A Hero) Equal to True)).) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to MassTPTarget
Unit - Create 1 TP Dummy (Jaina) for (Owner of (Casting unit)) at MassTPTarget facing Default building facing degrees
Sound - Play MassTeleportTarget <gen> at 60.00% volume, attached to (Last created unit)
Animation - Change (Last created unit)'s animation speed to 700.00% of its original speed
Unit - Add a 0.90 second Generic expiration timer to (Last created unit)
Else - Actions
Custom script: call RemoveLocation(udg_MassTPUnitAOE)
Custom script: call RemoveLocation(udg_MassTPTarget)
Mass TP OG
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Jaina's Mass Teleport
Actions
Set VariableSet MassTPUnit = (Casting unit)
Set VariableSet MassTPUnitAOE = (Position of MassTPUnit)
Set VariableSet MassTPTarget = (Target point of ability being cast)
Unit - Create 1 TP Dummy (Jaina) for (Owner of (Casting unit)) at MassTPUnitAOE facing Default building facing degrees
Animation - Change (Last created unit)'s animation speed to 400.00% of its original speed
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Wait 5.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(MassTPUnit is alive) Equal to True
(MassTPUnit has buff Stunned (Pause)) Equal to False
(MassTPUnit has buff Sleep (Stun)) Equal to False
(MassTPUnit has buff Stunned) Equal to False
(MassTPUnit has buff Entangling Roots) Equal to False
Then - Actions
Unit Group - Pick every unit in (Units within 400.00 of MassTPUnitAOE matching ((((Matching unit) belongs to an ally of (Owner of MassTPUnit).) Equal to True) and (((Unit-type of (Matching unit)) is A Hero) Equal to True)).) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to MassTPTarget
Unit - Create 1 TP Dummy (Jaina) for (Owner of (Casting unit)) at MassTPTarget facing Default building facing degrees
Sound - Play MassTeleportTarget <gen> at 60.00% volume, attached to (Last created unit)
Animation - Change (Last created unit)'s animation speed to 700.00% of its original speed
Unit - Add a 0.90 second Generic expiration timer to (Last created unit)
Else - Actions
Custom script: call RemoveLocation(udg_MassTPUnitAOE)
Custom script: call RemoveLocation(udg_MassTPTarget)