- Joined
- Oct 7, 2014
- Messages
- 2,209
As the title says I'm trying to make a mass entangling roots but it only entangles two units and it seems that it only entangles another unit if the previously entangled unit dies.
Here is the triggers:
Here is the triggers:
-
Interweaving Vines Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Interweaving Vines
-
-
Actions
-
Set TargetPoint = (Target point of ability being cast)
-
Unit - Create 1 Dummy (Vexorian, Anitarf, Infrane) for (Triggering player) at TargetPoint facing 0.00 degrees
-
Set TempUnit = (Last created unit)
-
Set ID = (Custom value of TempUnit)
-
Set IVines_Caster[ID] = (Triggering unit)
-
Set TempReal = (Real((Level of (Ability being cast) for IVines_Caster[ID])))
-
Unit - Add Entangling Roots (Dummy) to TempUnit
-
Unit - Set level of Entangling Roots (Dummy) for TempUnit to (Integer(TempReal))
-
Set IVines_Radius[ID] = 200.00
-
Set IVines_Duration[ID] = (5.00 + TempReal)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(IVines_Group is empty) Equal to True
-
-
Then - Actions
-
Trigger - Turn on Interweaving Vines Loop <gen>
-
-
Else - Actions
-
-
Unit Group - Add TempUnit to IVines_Group
-
Custom script: call RemoveLocation(udg_TargetPoint)
-
-
-
Interweaving Vines Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in IVines_Group and do (Actions)
-
Loop - Actions
-
Set TempUnit = (Picked unit)
-
Set ID = (Custom value of TempUnit)
-
Set TempPlayer = (Owner of TempUnit)
-
Set CenterPoint = (Position of TempUnit)
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within IVines_Radius[ID] of CenterPoint) and do (Actions)
-
Loop - Actions
-
Set TargetUnit = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(TargetUnit belongs to an enemy of TempPlayer) Equal to True
-
-
Then - Actions
-
Unit - Order TempUnit to Night Elf Keeper Of The Grove - Entangling Roots TargetUnit
-
Unit Group - Remove TargetUnit from (Units within IVines_Radius[ID] of CenterPoint)
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_CenterPoint)
-
Set IVines_Duration[ID] = (IVines_Duration[ID] - 0.03)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
IVines_Duration[ID] Less than or equal to 0.00
-
-
Then - Actions
-
Unit Group - Remove TempUnit from IVines_Group
-
Unit - Remove TempUnit from the game
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(IVines_Group is empty) Equal to True
-
-
Then - Actions
-
-------- --------
-
-------- Turn off this trigger as it's currently doing nothing --------
-
-------- --------
-
Trigger - Turn off Interweaving Vines Loop <gen>
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-