[AI] AI retreat after attack

Status
Not open for further replies.
[trigger=Back to Avoid]MyTrigger
Events
Unit - A unit is attacked
Condition
(Owner of (Attacked unit) Equal to Player 1 (Red)
Actions
If (All conditions are True) then do (Then actions) else do (Else actions
If - Conditions
(Integer((Percentage life of (Attacked Unit) less than 60
Then - Actions
Unit - Odder (Attacked Unit) to Move to (Center of region000 gen)
Wait 3 seconds
Unit - Odder (Attacked unit to Attack move to (center of region001 gen)[/trigger]

This should do the trick
 
Status
Not open for further replies.
Back
Top