chukky-jr
Member
- Reaction score
- 15
i want my jump spell doesn't work if the target point cliff level is higher than the casting unit cliff level, but the trigger doesn't work, anyone can fix this?
Trigger:
- Jump
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to Jump [|cffffcc00C|r]
- Actions
- Set JumpInteger = (Player number of (Owner of (Casting unit)))
- Set JumpUnit[JumpInteger] = (Casting unit)
- Set Jump_position[JumpInteger] = (Position of JumpUnit[JumpInteger])
- Set JumpTarget[JumpInteger] = (Target point of ability being cast)
- Set JumpAngle[JumpInteger] = (Facing of (Casting unit))
- Set JumpStop[JumpInteger] = 200
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Terrain cliff level at JumpTarget[JumpInteger]) Less than or equal to (Terrain cliff level at Jump_position[JumpInteger])
- Then - Actions
- Unit - Add Storm Crow Form to JumpUnit[JumpInteger]
- Unit - Remove Storm Crow Form from JumpUnit[JumpInteger]
- Unit - Turn collision for JumpUnit[JumpInteger] Off
- Trigger - Turn on JumpMove <gen>
- Else - Actions
- If - Conditions
- Custom script: call RemoveLocation(udg_JumpTarget[udg_JumpInteger])
- Events
Trigger:
- JumpMove
- Events
- Time - Every 0.02 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- JumpStop[JumpInteger] Greater than 0
- Then - Actions
- Unit - Move JumpUnit[JumpInteger] instantly to JumpMove[JumpInteger]
- Custom script: call RemoveLocation(udg_JumpMove[udg_JumpInteger])
- Custom script: call RemoveLocation(udg_Jump_position[udg_JumpInteger])
- Set Jump_position[JumpInteger] = (Position of JumpUnit[JumpInteger])
- Set JumpMove[JumpInteger] = (Jump_position[JumpInteger] offset by 10.00 towards JumpAngle[JumpInteger] degrees)
- Set JumpStop[JumpInteger] = (JumpStop[JumpInteger] - 10)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- JumpStop[JumpInteger] Equal to 180
- Then - Actions
- Animation - Change JumpUnit[JumpInteger] flying height to 50.00 at 1200.00
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- JumpStop[JumpInteger] Equal to 20
- Then - Actions
- Animation - Change JumpUnit[JumpInteger] flying height to 0.00 at 1200.00
- Else - Actions
- If - Conditions
- Else - Actions
- Trigger - Turn off (This trigger)
- Custom script: call RemoveLocation(udg_JumpMove[udg_JumpInteger])
- Custom script: call RemoveLocation(udg_Jump_position[udg_JumpInteger])
- Unit - Turn collision for JumpUnit[JumpInteger] On
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events