The idea for this spell is as follows: hero casts a target unit ability on an enemy unit, it creates a unit and it uses a leveled Orc Batrider - Unstable Concoction on it.
So far, so good. However, with the hero's ultimate ability it'll create one extra spirit per level to charge at a random enemy unit in the area if there is one nearby.
I've managed to make it work to some extent, but as it stands now the extra spirits sometimes seek out the same target and fail to execute their order correctly, forcing them to expire after the expiration timer is up.
So far, so good. However, with the hero's ultimate ability it'll create one extra spirit per level to charge at a random enemy unit in the area if there is one nearby.
I've managed to make it work to some extent, but as it stands now the extra spirits sometimes seek out the same target and fail to execute their order correctly, forcing them to expire after the expiration timer is up.
-
W Vengeful Spirit
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Vengeful Spirit (Rothin)
-
-
Actions
-
Set VariableSet tempPoint = (Position of (Triggering unit))
-
Unit - Create 1 Volatile Spirit for (Owner of (Triggering unit)) at tempPoint facing (Facing of (Triggering unit)) degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Set level of Vengeful Spirit (Dummy) for (Last created unit) to (Level of Vengeful Spirit (Rothin) for (Triggering unit))
-
Unit - Order (Last created unit) to Orc Batrider - Unstable Concoction (Target unit of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Soul Conduit (Rothin) for (Triggering unit)) Greater than 0
-
-
Then - Actions
-
Set VariableSet VengefulSpirit_Count = (Level of Soul Conduit (Rothin) for (Triggering unit))
-
Set VariableSet VengefulSpirit_Group = (Random VengefulSpirit_Count units from (Units within 900.00 of tempPoint matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True) and (((Matching unit) is alive) Equal to True)).))
-
Unit Group - Pick every unit in (Random VengefulSpirit_Count units from VengefulSpirit_Group) and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Volatile Spirit for (Owner of (Triggering unit)) at tempPoint facing (Facing of (Triggering unit)) degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Set level of Vengeful Spirit (Dummy) for (Last created unit) to (Level of Vengeful Spirit (Rothin) for (Triggering unit))
-
Unit - Order (Last created unit) to Orc Batrider - Unstable Concoction (Picked unit)
-
-
-
-
Else - Actions
-
-
Custom script: call RemoveLocation (udg_tempPoint )
-
Custom script: call DestroyGroup (udg_VengefulSpirit_Group )
-
-
Last edited: