- Joined
- Jul 22, 2007
- Messages
- 261
My triggers for a game are not working properly...
When i cast the ability the ball goes to a random spot on the map
When i cast the ability the ball goes to a random spot on the map
-
Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Death Coil
-
-
Actions
-
Set PlayerPosition = (Position of (Triggering unit))
-
Set Target = (Target unit of ability being cast)
-
Set Caster = (Triggering unit)
-
Set Angle = (Angle from PlayerPosition to (Position of Target))
-
Trigger - Turn on Death Ball Move <gen>
-
Wait 3.00 seconds
-
Trigger - Turn off Death Ball Move <gen>
-
Set Caster = No unit
-
Set Target = No unit
-
Set PlayerPosition = (Center of (Playable map area))
-
-
-
Death Ball Move
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Unit - Move Target instantly to (PlayerPosition offset by ((Distance between PlayerPosition and (Position of Target)) + 7.00) towards Angle degrees), facing (Angle from PlayerPosition to (Position of Target)) degrees
-
-
-
Death Ball Bounce
-
Events
-
Unit - A unit enters Bottom Wall <gen>
-
Unit - A unit enters Left Wall <gen>
-
Unit - A unit enters Right Wall <gen>
-
Unit - A unit enters Top WALL <gen>
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Death Ball
-
-
Actions
-
Set Angle = ((Angle from PlayerPosition to (Position of Target)) + 90.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Angle Greater than or equal to 360.00
-
-
Then - Actions
-
Set Angle = (Angle - 360.00)
-
-
Else - Actions
-
Do nothing
-
-
-
Trigger - Run Death Ball Move <gen> (checking conditions)
-
-