I've got two problems I need help with;
First one is knockback - I made a knockback and it's working good except part with war stomp isnt working and the effect isnt removing. Here are the triggers:
First one is knockback - I made a knockback and it's working good except part with war stomp isnt working and the effect isnt removing. Here are the triggers:
-
Crushing Wave
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Crushing Wave
-
Actions
- Animation - Play (Casting unit)'s spell animation
- Set CrushingWaveCaster = (Triggering unit)
- Set CrushingWaveTarget = (Target unit of ability being cast)
- Set LoopCounter = 0
- Trigger - Turn on Crushing Wave 2 <gen>
-
Events
-
Crushing Wave 2
-
Events
- Time - Every 0.02 seconds of game time
- Conditions
-
Actions
- Set TempLoc00 = (Position of CrushingWaveCaster)
- Set TempLoc01 = (Position of CrushingWaveTarget)
- Set TempLoc02 = (TempLoc01 offset by 10.00 towards (Angle from TempLoc00 to TempLoc01) degrees)
- Special Effect - Create a special effect attached to the origin of CrushingWaveTarget using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
- Set CrushingWaveEffect = (Last created special effect)
- Set LoopCounter = (LoopCounter + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain pathing at TempLoc02 of type Walkability is off) Equal to True
-
Then - Actions
- Unit - Create 1 Crushing Wave for Player 1 (Red) at TempLoc02 facing Default building facing (270.0) degrees
- Unit - Add Crushing Wave Stun to (Triggering unit)
- Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
- Unit - Remove (Last created unit) from the game
- Trigger - Turn on Crushing Wave 3 <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- LoopCounter Less than 50
-
Then - Actions
- Unit - Move CrushingWaveTarget instantly to TempLoc02
- Custom script: call RemoveLocation(udg_TempLoc00)
- Custom script: call RemoveLocation(udg_TempLoc01)
- Custom script: call RemoveLocation(udg_TempLoc02)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
-
Then - Actions
- Trigger - Turn on Crushing Wave 3 <gen>
- Trigger - Turn off (This trigger)
- Else - Actions
-
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)
-
If - Conditions
-
Events
-
Crushing Wave 3
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Special Effect - Destroy CrushingWaveEffect
- Trigger - Turn off (This trigger)
-
Events
-
Water Missile
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Water Missile
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Learned skill level) Equal to 1
-
Then - Actions
- Unit - Add Water Missile (Bonus) (+3) to (Triggering unit)
- Player - Set the current research level of Water Missile to 1 for (Owner of (Learning Hero))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Learned skill level) Equal to 2
-
Then - Actions
- Unit - Set level of Water Missile (Bonus) (+3) for (Triggering unit) to 2
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Learned skill level) Equal to 3
-
Then - Actions
- Unit - Set level of Water Missile (Bonus) (+3) for (Triggering unit) to 3
- Player - Set the current research level of Water Missile to 2 for (Owner of (Learning Hero))
-
Else - Actions
- Do nothing
-
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)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events