- Joined
- Dec 16, 2017
- Messages
- 418
Hello guys, recently i've made this spell, i am struggling to make something over it, i want for each cast of the loop, to make a lightning from the caster to the point where the unit is created to, but seems like i don't find it how to xD.
How shall i trigger it correctly?
How shall i trigger it correctly?
-
Army of the Dead Cast
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to Army of the Dead (Death Knight UNHOLY)
-
-
Actions
-
Set AOTD_Index = (AOTD_Index + 1)
-
Set AOTD_Caster[AOTD_Index] = (Triggering unit)
-
Set AOTD_Player[AOTD_Index] = (Owner of AOTD_Caster[AOTD_Index])
-
Set AOTD_Duration[AOTD_Index] = 16
-
Player - Set the current research level of Ghoul Stats to (Level of (Ability being cast) for AOTD_Caster[AOTD_Index]) for AOTD_Player[AOTD_Index]
-
Player - Set the current research level of Ghoul Stats2 to (Level of (Ability being cast) for AOTD_Caster[AOTD_Index]) for AOTD_Player[AOTD_Index]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
AOTD_Index Equal to 1
-
-
Then - Actions
-
Trigger - Turn on Army of the Dead Loop <gen>
-
Trigger - Turn on Army of the Dead Stop <gen>
-
-
Else - Actions
-
-
-
-
Army of the Dead Loop
-
Events
-
Time - Every 0.33 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer AOTD_Loop) from 1 to AOTD_Index, do (Actions)
-
Loop - Actions
-
Set AOTD_Duration[AOTD_Loop] = (AOTD_Duration[AOTD_Loop] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
AOTD_Duration[AOTD_Loop] Greater than or equal to 0
-
(AOTD_Caster[AOTD_Loop] is alive) Equal to True
-
(Current order of AOTD_Caster[AOTD_Loop]) Equal to (Order(channel))
-
-
Then - Actions
-
Set AOTD_Position[AOTD_Loop] = (Position of AOTD_Caster[AOTD_Loop])
-
Set AOTD_SummonPoint[AOTD_Loop] = (AOTD_Position[AOTD_Loop] offset by (Random real number between 100.00 and 300.00) towards (Random real number between 0.00 and 360.00) degrees)
-
Unit - Create 1 Ghoul (Death Knight UNHOLY) for AOTD_Player[AOTD_Loop] at AOTD_SummonPoint[AOTD_Loop] facing 0.00 degrees
-
Special Effect - Create a special effect attached to the origin of (Last created unit) using Blood Massacre Black.mdx
-
Special Effect - Destroy (Last created special effect)
-
Unit - Add a 35.00 second Generic expiration timer to (Last created unit)
-
Lightning - Create a Spirit Link lightning effect from source AOTD_Position[AOTD_Loop] to target AOTD_SummonPoint[AOTD_Loop]
-
Lightning - Destroy (Last created lightning effect)
-
Custom script: call RemoveLocation(udg_AOTD_Position[udg_AOTD_Loop])
-
Custom script: call RemoveLocation(udg_AOTD_SummonPoint[udg_AOTD_Loop])
-
-
Else - Actions
-
Set AOTD_Caster[AOTD_Loop] = AOTD_Caster[AOTD_Index]
-
Set AOTD_Player[AOTD_Loop] = AOTD_Player[AOTD_Index]
-
Set AOTD_Duration[AOTD_Loop] = AOTD_Duration[AOTD_Index]
-
Set AOTD_Index = (AOTD_Index - 1)
-
Set AOTD_Loop = (AOTD_Loop - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
AOTD_Index Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Trigger - Turn off Army of the Dead Stop <gen>
-
-
Else - Actions
-
-
-
-
-
-
-
-
Army of the Dead Stop
-
Events
-
Unit - A unit Is issued an order with no target
-
Unit - A unit Is issued an order targeting a point
-
Unit - A unit Is issued an order targeting an object
-
-
Conditions
-
Actions
-
For each (Integer AOTD_Loop) from 1 to AOTD_Index, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
AOTD_Caster[AOTD_Loop] Equal to (Triggering unit)
-
-
Then - Actions
-
Set AOTD_Caster[AOTD_Loop] = No unit
-
-
Else - Actions
-
-
-
-
-
Last edited: