[size=150]INTRO[/size]
This summer I started writing down several ideas on how the battle AI could be improved on the short and long term, as some of the current behaviors (like skipping battle turns just because the access to some enemy creature is blocked, when 6 others are vulnerable) would be better replaced even with something as basic as “attack nearest enemy creature”. However I didn’t get as far as I wanted with my analysis due to time restraints.
Recently though I noticed on Wiki that currently notable efforts are being put into developing the AI, confirmed today by Tow dragon as well. While this is wonderful news, for me this poses the “risk” that the battle AI will be done before I finish my document (on which I was planning to work again only after Christmas, when I will have some time to spare).
So I thought to better share with you what I already have, unfinished as it is, just in case there’s anything in there that might be of some use.
And because battle AI is a huge subject, probably hard to follow within a single thread, I’m going to split it as follows:
I. BATTLE PREPARATION: to be discussed in this thread.
II. ARROW TOWERS & WAR MACHINES: link
III. CREATURE ATTACKS: link
IV. SPELL CASTING: link
[size=150]Battle AI Part 1 - BATTLE PREPARATION[/size]
This includes two major aspects:
1.A. Pre-battle preparations
This is not battle AI per-se, but actually the meeting point of Adventure AI, Town management AI and Hero management AI, but from the perspective of the battle(s) to come. And it should probably range from short term planning (depending on the imminent attack to follow) to long term planning (depending on the chance of meeting certain enemies in future battles, according with the info AI gets from Taverns and discovered territory). This should include:
o How to Build Armies: purchase/upgrade decisions, caravan exchange
o How to Arrange Army: before each battle, depending on how the enemy arrange its creatures (if attack is expected), battle formation, splits
o Select Artifacts to have equipped during battle
o Planning coordinated attacks with more than 1 hero (e.g.: kamikaze heroes to drain enemy spells and produce minimal damage)
o Fortification choices
(to be however seen if this is a place to discuss the above, or better in dedicated Adv/Town/Hero AI threads)
1.B. Tactics phase
This is battle AI, though I haven’t started to draft the rules for this one yet (to follow).
As you can see above, for this I only managed to list what it should be about. Any rules that AI should actually follow are still to come. But that will not be in the near future from my part, but if anyone is willing to share any information on this, you are more than welcome to do so below. And that can be information of any kind, e.g.:
- Personal thoughts/experiences/suggestions
- Ready-made analysis by others that you know of (e.g.: item X already detailed in Strategija from page Y to Z)
- Known H3 AI flaws that we should handle better
[size=75]PS: If you like the idea of these threads and/or if they catch, I will probably sticky them at a later date (I won’t do it just yet, because I realize there’s a certain chance this effort is actually not necessary at all, given either the coding approach, or very good analysis already presented elsewhere that I don’t know of (in which case though any links shared would be most welcome)[/size]