Very interesting. To be honest, getting units to defend how you actually want them to would be tricky... only some factors of interest:
- survival odds (duh.)
- expected hp left (often favours first strikes over raw power)
- expected damage dealt to the attacker (see above)
- expendability: Hammer cost and number of promotions
- various situations-specific considerations
An example of the last: If attacked by a ton of siege, I don't want my high-drill units to defend at first; they will shine as the second line of defense because they will take less attrition.
- survival odds (duh.)
- expected hp left (often favours first strikes over raw power)
- expected damage dealt to the attacker (see above)
- expendability: Hammer cost and number of promotions
- various situations-specific considerations
An example of the last: If attacked by a ton of siege, I don't want my high-drill units to defend at first; they will shine as the second line of defense because they will take less attrition.