Hi, I'm trying to make a spell where the caster creates a ring of fire around him, and i got the fire moving, but it just moves in a circle instead of creating a "ring of fire". May anyone tell me what I'm doing wrong/need to do?
(Below is the trigger I used)
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flame Destruction
Actions
Set ACenter = (Position of (Triggering unit))
Set AAngle = 0.00
Unit - Create 1 FlameWard for (Owner of (Triggering unit)) at (ACenter offset by 256.00 towards 0.00 degrees) facing Default building facing degrees
Set AMovingWard = (Last created unit)
Trigger - Turn on MovingWard <gen>
MovingWard
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set AAngle = (AAngle + 1.00)
Set AATempPoint = (ACenter offset by 256.00 towards AAngle degrees)
Unit - Move AMovingWard instantly to AATempPoint
Unit - Pause AMovingWard
Unit - Move AMovingWard instantly to (ACenter offset by 256.00 towards AAngle degrees)
Custom script: call RemoveLocation(udg_AATempPoint)
Set ATempCount = (ATempCount + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ATempCount Equal to 500
Then - Actions
Unit - Kill AMovingWard
Trigger - Turn off (This trigger)
Else - Actions
(Below is the trigger I used)
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flame Destruction
Actions
Set ACenter = (Position of (Triggering unit))
Set AAngle = 0.00
Unit - Create 1 FlameWard for (Owner of (Triggering unit)) at (ACenter offset by 256.00 towards 0.00 degrees) facing Default building facing degrees
Set AMovingWard = (Last created unit)
Trigger - Turn on MovingWard <gen>
MovingWard
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set AAngle = (AAngle + 1.00)
Set AATempPoint = (ACenter offset by 256.00 towards AAngle degrees)
Unit - Move AMovingWard instantly to AATempPoint
Unit - Pause AMovingWard
Unit - Move AMovingWard instantly to (ACenter offset by 256.00 towards AAngle degrees)
Custom script: call RemoveLocation(udg_AATempPoint)
Set ATempCount = (ATempCount + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ATempCount Equal to 500
Then - Actions
Unit - Kill AMovingWard
Trigger - Turn off (This trigger)
Else - Actions