- Joined
- Jun 24, 2009
- Messages
- 1,409
I am making a boomerang type skill(first time) and I have a little problem with it's movement. The problem is that it moves a whole circle but I'm just done with the half of the trigger also the movement line forms a heart now....
where the problem is?
The trigger is very very half done.
where the problem is?
-
Shuriken
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Shuriken
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SIndex Less than SMax
-
Then - Actions
- Set SIndex = (SIndex + 1)
-
Else - Actions
- Set SIndex = 1
-
If - Conditions
- Set SCaster[SIndex] = (Triggering unit)
- Set STargetPoint[SIndex] = (Target point of ability being cast)
- Set SCasterPoint[SIndex] = (Position of SCaster[SIndex])
- Set SDistanceMax[SIndex] = 1400.00
- Set SDistanceInner[SIndex] = (SDistanceMax[SIndex] / 10.00)
- Set SDistanceOuter[SIndex] = (SDistanceMax[SIndex] / 2.00)
- Set SDistance[SIndex] = SDistanceOuter[SIndex]
- Set SMove[SIndex] = ((SDistanceOuter[SIndex] - SDistanceInner[SIndex]) x 0.03)
- Set SBoomerangPoint[SIndex] = (SCasterPoint[SIndex] offset by (SDistanceMax[SIndex] / 2.00) towards (Angle from SCasterPoint[SIndex] to STargetPoint[SIndex]) degrees)
- Set SAngle[SIndex] = (Angle from SBoomerangPoint[SIndex] to SCasterPoint[SIndex])
- Set SDamage[SIndex] = (100.00 + (50.00 x (Real((Level of Shuriken for SCaster[SIndex])))))
- Set SChange[SIndex] = False
- Set SBack[SIndex] = False
- Unit - Create 1 Shuriken for (Owner of SCaster[SIndex]) at SCasterPoint[SIndex] facing Default building facing degrees
- Set SDummy[SIndex] = (Last created unit)
- Animation - Change SDummy[SIndex]'s animation speed to 150.00% of its original speed
- Custom script: call RemoveLocation (udg_STargetPoint[udg_SIndex])
- Set SHas[SIndex] = True
- Set SCount = (SCount + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Shuriken Loop <gen> is on) Equal to False
-
Then - Actions
- Trigger - Turn on Shuriken Loop <gen>
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Shuriken Loop
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
-
For each (Integer SInteger) from 1 to SMax, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SHas[SInteger] Equal to True
-
Then - Actions
- Set SAngle[SInteger] = (SAngle[SInteger] + 5.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SBack[SInteger] Equal to False
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SChange[SInteger] Equal to False
-
Then - Actions
- Set SDistance[SInteger] = (SDistance[SInteger] - SMove[SInteger])
-
Else - Actions
- Set SDistance[SInteger] = (SDistance[SInteger] + SMove[SInteger])
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SDistance[SInteger] Less than or equal to SDistanceInner[SInteger]
-
Then - Actions
- Set SChange[SInteger] = True
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- SChange[SInteger] Equal to True
- SDistance[SInteger] Greater than or equal to SDistanceOuter[SInteger]
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Set SBack[SInteger] = True
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- Set STempPoint = (SBoomerangPoint[SInteger] offset by SDistance[SInteger] towards SAngle[SInteger] degrees)
- Unit - Move SDummy[SInteger] instantly to STempPoint
- Custom script: call RemoveLocation (udg_STempPoint)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SCount Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer SInteger) from 1 to SMax, do (Actions)
-
Events