How close am i? and what am i doing wrong.
Trigger:
- Pursuit Setup
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Pursuit (passive)
- Actions
- Set AbyssCasts = (AbyssCasts + 1)
- Set AbyssLord[AbyssCasts] = (Learning Hero)
- Set CasterChecker[AbyssCasts] = (Position of AbyssLord[AbyssCasts])
- Unit - Create 1 Inflictor for (Owner of AbyssLord[AbyssCasts]) at CasterChecker[AbyssCasts] facing Default building facing degrees
- Set PursuitPositionChecker[AbyssCasts] = (Last created unit)
- Set PositionChecker[AbyssCasts] = (Position of PursuitPositionChecker[AbyssCasts])
- Trigger - Turn on Increase Momentum <gen>
- Events
Trigger:
- Increase Momentum
- Events
- Time - Every 0.50 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Distance between CasterChecker[AbyssCasts] and PositionChecker[AbyssCasts]) Less than or equal to 5.00
- Then - Actions
- Set PursuitMomentum[AbyssCasts] = 0.00
- Unit - Remove -InfernoPursuit from AbyssLord[AbyssCasts]
- Unit - Move PursuitPositionChecker[AbyssCasts] instantly to CasterChecker[AbyssCasts]
- Unit - Set AbyssLord[AbyssCasts] movement speed to (Default movement speed of AbyssLord[AbyssCasts])
- Else - Actions
- Set PursuitMomentum[AbyssCasts] = (PursuitMomentum[AbyssCasts] + (4.00 + (1.00 x (Real((Level of Pursuit (passive) for AbyssLord[AbyssCasts]))))))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PursuitMomentum[AbyssCasts] Greater than or equal to (300.00 + (100.00 x (Real((Level of Pursuit (passive) for AbyssLord[AbyssCasts])))))
- Then - Actions
- Set PursuitMomentum[AbyssCasts] = (225.00 + (75.00 x (Real((Level of Pursuit (passive) for AbyssLord[AbyssCasts])))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PursuitMomentum[AbyssCasts] Greater than or equal to 250.00
- Then - Actions
- Special Effect - Create a special effect at CasterChecker[AbyssCasts] using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PursuitMomentum[AbyssCasts] Greater than or equal to 450.00
- Then - Actions
- Destructible - Pick every destructible within 300.00 of CasterChecker[AbyssCasts] and do (Actions)
- Loop - Actions
- Destructible - Kill (Picked destructible)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of -InfernoPursuit for AbyssLord[AbyssCasts]) Greater than 0
- Then - Actions
- Else - Actions
- Unit - Add -InfernoPursuit to AbyssLord[AbyssCasts]
- If - Conditions
- Destructible - Pick every destructible within 300.00 of CasterChecker[AbyssCasts] and do (Actions)
- Else - Actions
- Unit - Remove -InfernoPursuit from AbyssLord[AbyssCasts]
- If - Conditions
- Unit - Set AbyssLord[AbyssCasts] movement speed to ((Default movement speed of AbyssLord[AbyssCasts]) + PursuitMomentum[AbyssCasts])
- Unit - Move PursuitPositionChecker[AbyssCasts] instantly to CasterChecker[AbyssCasts]
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- SlowDown
- Events
- Unit - A unit Is issued an order targeting an object
- Unit - A unit Is issued an order targeting a point
- Conditions
- PursuitMomentum[AbyssCasts] Greater than or equal to (300.00 + (100.00 x (Real((Level of Pursuit (passive) for AbyssLord[AbyssCasts])))))
- Or - Any (Conditions) are true
- Conditions
- (Issued order) Equal to (Order(move))
- (Issued order) Equal to (Order(attack))
- (Issued order) Equal to (Order(patrol))
- Conditions
- Actions
- Set PursuitMomentum[AbyssCasts] = (PursuitMomentum[AbyssCasts] - 50.00)
- Events