Another plea for help, i want my hero to get his aura disabled if he hasn't moved at least 20 range in the last 1 second and every 500 units travelled to emit a thunderclap, the thunderclap should also make enemies miss. Though something is wrong, here are my triggers:
Trigger:
- Unstable Ground Begins
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Unstable Ground
- Actions
- Set Owner_of_Unit = (Owner of (Triggering unit))
- Set Distance_Travelled = 0.00
- Set Trig_Unit = (Triggering unit)
- Set Position_of_Shike = (Position of (Triggering unit))
- Unit - Create 1 Dummy for Owner_of_Unit at (Position of (Triggering unit)) facing Default building facing degrees
- Set Dummy = (Last created unit)
- Unit - Order Dummy to Follow Trig_Unit
- Trigger - Turn on Unstable Ground Distance <gen>
- Trigger - Turn on Unstable Ground Moving <gen>
- Trigger - Turn on Unstable Ground Stomp <gen>
- Events
Trigger:
- Unstable Ground Distance
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Actions
- Set Distance_Travelled = (Distance_Travelled + (Distance between Position_of_Shike and (Position of Trig_Unit)))
- Set Dummy_Loc = (Position of Dummy)
- Events
Trigger:
- Unstable Ground Stomp
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Distance_Travelled Greater than or equal to 500.00
- Actions
- Unit - Add Unstable Ground Clap to Dummy
- Unit - Set level of Unstable Ground Clap for Dummy to (Level of Unstable Ground for Trig_Unit)
- Unit - Order Dummy to Human Mountain King - Thunder Clap
- Wait 1.00 seconds
- Unit - Order Dummy to Follow Trig_Unit
- Events
Trigger:
- Unstable Ground Moving
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set Distance_Travelled = 0.00
- Set Dummy_Loc = (Position of Dummy)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Distance between Position_of_Shike and (Position of Trig_Unit)) Greater than or equal to 20.00
- Then - Actions
- Unit - Add Unstable Ground Unit to Dummy
- Unit - Set level of Unstable Ground Unit for Dummy to (Level of Unstable Ground for Trig_Unit)
- Player - Enable Unstable Ground for Owner_of_Unit
- Else - Actions
- Player - Disable Unstable Ground for Owner_of_Unit
- Unit - Remove Unstable Ground Unit from Dummy
- If - Conditions
- Events