Hi everyone, sorry for bothers you to read but i need to ask, i dont know whats wrong with my trigger
I did the trigger, but when units attacks, it moves chaos, foward, backward.... and i dont know what's wrong with my trigger
The Spell said:When unit got attacked, it instantly move back 250 range from Attacking Unit
I did the trigger, but when units attacks, it moves chaos, foward, backward.... and i dont know what's wrong with my trigger
-
Fade
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Attacked unit) has buff Fade ) Equal to (==) True
- ((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to (==) True
-
Actions
- Set AAReal = (Facing of (Attacking unit))
-
Set AALoc1 = (Position of (Attacked unit))
-
Do Multiple ActionsFor each (Integer A) from 1 to (250 / 50), do (Actions)
-
Loop - Actions
-
Set AALoc2 = (AALoc1 offset by (275.00 - (25.00 x (Real((Integer A))))) towards AAReal degrees)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain pathing at AALoc2 of type Walkability is off) Equal to (==) False
-
Then - Actions
- Unit - Move (Attacked unit) instantly to AALoc2
- Unit - Order (Attacked unit) to Attack (Attacking unit)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Custom script: call RemoveLocation(udg_AALoc2)
-
Set AALoc2 = (AALoc1 offset by (275.00 - (25.00 x (Real((Integer A))))) towards AAReal degrees)
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to (250 / 50), do (Actions)
- Custom script: call RemoveLocation(udg_AALoc1)
-
Events