What's wrong with my trigger?
Hello, i am making my own RPG-map and want some help to a trigger.
The trigger Make a lightning effect to all enemies in 700 range around the Caster. the problewm is that my other trigger that make the lightning effect move doesnt turn on when i ask it to do it. And even if it turn on i doesnt move to hte position i told iit to do. help me please!!!! HERE IT IS:
Events:
Unit - A unit starts the effect of an ability
Conditions:
(Ability being cast) Equal to (My spell)
Actions:
Unit Group - Pick every (unit in 700 of (Position of (Casting unit))) and do (Actions)
Loop - Action:
If (All Conditions are True) then do (Then Action) else do (Else Action)
If - Conditons:
(Owner of (Picked unit)) Equal to Neutral Hostile
Then - Actions:
Lightning - Create a Drain Life lightning effect from source (Position of (Casting unit)) to target of (Picked unit))
Set Lightning_Effect_Enemies = (Last created lightning effect)
Trigger - Turn on Lightning Effect Trigger <gen>
Wait 5.00 seconds
Trigger - Turn off Lightning Effect Trigger <gen>
Lightning - Destroy Lightning_Effect_Enemies
Else - Actions:
Do nothing
Lightning Effect Trigger:
Events:
Time - Every 0.03 seconds of game time
Conditions:
Actions:
Lightning - Move Lightning_Effect_Enemies to source (Position of (Casting unit)) and target (Position of (Picked unit))
(when i make new postion of the effect the position of the picked unit still counts at the point it was from the start (even if the picked unit move))
Hello, i am making my own RPG-map and want some help to a trigger.
The trigger Make a lightning effect to all enemies in 700 range around the Caster. the problewm is that my other trigger that make the lightning effect move doesnt turn on when i ask it to do it. And even if it turn on i doesnt move to hte position i told iit to do. help me please!!!! HERE IT IS:
Events:
Unit - A unit starts the effect of an ability
Conditions:
(Ability being cast) Equal to (My spell)
Actions:
Unit Group - Pick every (unit in 700 of (Position of (Casting unit))) and do (Actions)
Loop - Action:
If (All Conditions are True) then do (Then Action) else do (Else Action)
If - Conditons:
(Owner of (Picked unit)) Equal to Neutral Hostile
Then - Actions:
Lightning - Create a Drain Life lightning effect from source (Position of (Casting unit)) to target of (Picked unit))
Set Lightning_Effect_Enemies = (Last created lightning effect)
Trigger - Turn on Lightning Effect Trigger <gen>
Wait 5.00 seconds
Trigger - Turn off Lightning Effect Trigger <gen>
Lightning - Destroy Lightning_Effect_Enemies
Else - Actions:
Do nothing
Lightning Effect Trigger:
Events:
Time - Every 0.03 seconds of game time
Conditions:
Actions:
Lightning - Move Lightning_Effect_Enemies to source (Position of (Casting unit)) and target (Position of (Picked unit))
(when i make new postion of the effect the position of the picked unit still counts at the point it was from the start (even if the picked unit move))