This is a very small system ( not much of it ). Basically it moves your ranged units back when attacked by a melee guy.
If you fancy a ranged char you will love it.
If you are a melee guy you will curse me.
Can be modified for heroes
[trigger=My Trigger]
Unit Range Move Back
Events
Unit - A unit Is attacked
Conditions
(Distance between (Position of (Attacking unit)) and (Position of (Attacked unit))) Less than 300.00
((Attacking unit) is A ranged attacker) Equal to True
((Attacking unit) is A flying unit) Equal to False
((Attacking unit) is A melee attacker) Equal to False
(Owner of (Attacking unit)) Not equal to Neutral Passive
Actions
Trigger - Turn off (This trigger)
Unit - Order (Attacking unit) to Stop
Wait 0.03 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at ((Position of (Attacking unit)) offset by 600.00 towards (180.00 + (Facing of (Attacking unit))) degrees) of type Walkability is off) Equal to False
Then - Actions
Unit - Order (Attacking unit) to Move To ((Position of (Attacked unit)) offset by 800.00 towards (180.00 + (Facing of (Attacking unit))) degrees)
Else - Actions
Unit - Order (Attacking unit) to Move To ((Position of (Attacked unit)) offset by 800.00 towards (0.00 + (Facing of (Attacking unit))) degrees)
Wait 2.00 seconds
Unit - Order (Attacking unit) to Attack (Attacked unit)
Trigger - Turn on (This trigger)
[/trigger]
Keywords:
run back, ranged, dodge, system, fallen, ranged cowards