ExpiredReign
Deity
... can the AI retreat mechanic be linked to how much HP is left in their army? For example, let's say I'm attacking with 4 units. The total HP of my army is at 400. All 4 units take some damage, and the total HP of my army now goes down to 190. From a player's perspective, it makes sense to pull your troops back and heal them. Can this type of logic be coded into the AI? Of course, it will be more complex than this simple example (i.e. have to think about what the total HP is, and how it changes as units die).
I think this idea has great merit.
If the AI calculates the attack/defeat ratio based on 'army status' rather than, or as well as, individual unit health or numbers then it surely would make a difference.
Humans will break off combat if, despite having more archers say, they have no melee units for the coup de grâce.
Not sure how much coding this will take though.