- Joined
- Jun 30, 2014
- Messages
- 72
This spell no longer has script error warnings (thanks, hivers) but now it behaves strangely. The first cast is totally fine, but every subsequent cast starts the movement from the wrong place.
Here's the trigger (certain people will remember this one):
Any ideas on what's not right? (things you find obvious are not usually obvious to me, who is used to *simple* triggering. I only learned to fix leaks/use custom scripts this week.)

Here's the trigger (certain people will remember this one):
-
Leap Skill 1
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Leap (Dummy, channel, Crow transition
-
-
Actions
-
-------- Faces Caster Toward Target --------
-
Unit - Make (Casting unit) face (Target point of ability being cast) over 0.00 seconds
-
-------- Set Variables --------
-
Set Leaper = (Casting unit)
-
Set LeapOrigin = (Position of (Casting unit))
-
Set LeapTarget = (Target point of ability being cast)
-
Set LeapFacing = (Facing of Leaper)
-
Set LeapMoveAngle = (LeapFacing + 180.00)
-
Set LeapDist = (Distance between LeapOrigin and LeapTarget)
-
Set LeapStep[0] = (LeapDist / 10.00)
-
Set LeapStep[1] = (LeapStep[0] + LeapStep[1])
-
Set LeapStep[2] = (LeapStep[1] + LeapStep[1])
-
Set LeapStep[3] = (LeapStep[2] + LeapStep[1])
-
Set LeapStep[4] = (LeapStep[3] + LeapStep[1])
-
Set LeapStep[5] = (LeapStep[4] + LeapStep[1])
-
Set LeapStep[6] = (LeapStep[5] + LeapStep[1])
-
Set LeapStep[7] = (LeapStep[6] + LeapStep[1])
-
Set LeapStep[8] = (LeapStep[7] + LeapStep[1])
-
Set LeapStep[9] = (LeapStep[8] + LeapStep[1])
-
Set LeapStep[10] = (LeapStep[9] + LeapStep[1])
-
For each (Integer LeapInt) from 1 to 10, do (Actions)
-
Loop - Actions
-
Set LeapTemps[LeapInt] = (LeapTarget offset by LeapStep[LeapInt] towards LeapMoveAngle degrees)
-
-
-
-------- Leap Action --------
-
Unit - Pause Leaper
-
Unit - Turn collision for Leaper Off
-
Unit - Add Crow Form to Leaper
-
-------- Repeat These 3 Actions For Each "Step" --------
-
Animation - Change Leaper flying height to Leap_Height_Increment at 900.00
-
Unit - Move Leaper instantly to LeapTemps[10], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 2.00) at 900.00
-
Unit - Move Leaper instantly to LeapTemps[9], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 3.00) at 900.00
-
Unit - Move Leaper instantly to LeapTemps[8], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 4.00) at 950.00
-
Unit - Move Leaper instantly to LeapTemps[7], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 5.00) at 950.00
-
Unit - Move Leaper instantly to LeapTemps[6], facing LeapFacing degrees
-
Wait 0.20 seconds
-
Animation - Change Leaper flying height to 600.00 at 950.00
-
Wait 0.20 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 5.00) at 950.00
-
Unit - Move Leaper instantly to LeapTemps[5], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 4.00) at 950.00
-
Unit - Move Leaper instantly to LeapTemps[4], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 3.00) at 900.00
-
Unit - Move Leaper instantly to LeapTemps[3], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 3.00) at 900.00
-
Unit - Move Leaper instantly to LeapTemps[2], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to (Leap_Height_Increment x 2.00) at 900.00
-
Unit - Move Leaper instantly to LeapTemps[1], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to Leap_Height_Increment at 950.00
-
Unit - Move Leaper instantly to LeapTemps[0], facing LeapFacing degrees
-
Wait 0.01 seconds
-
Animation - Change Leaper flying height to 0.00 at 950.00
-
Unit - Move Leaper instantly to LeapTarget, facing LeapFacing degrees
-
Wait 0.20 seconds
-
Unit - Remove Crow Form from Leaper
-
Unit - Unpause Leaper
-
Unit - Turn collision for Leaper On
-
-------- Clean Leaks --------
-
For each (Integer LeapInt) from 1 to 10, do (Actions)
-
Loop - Actions
-
Custom script: call RemoveLocation(udg_LeapTemps[udg_LeapInt])
-
Custom script: call RemoveLocation(udg_LeapTemps[udg_LeapInt])
-
Custom script: set udg_LeapTemps[udg_LeapInt] = null
-
-
-
Custom script: call RemoveLocation(udg_LeapTarget)
-
Custom script: call RemoveLocation(udg_LeapOrigin)
-
-