• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[AI] AI retreat after attack

Status
Not open for further replies.
Level 13
Joined
Sep 14, 2012
Messages
437
[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.
Top