So for the SRPG I'm making, I find the most daunting thing I have ahead of me is designing a non-trivial AI. It's easily the thing that I'm going to need to do that I have the least (ie none) experience with. I did, however, come up with a little mechanic that I'd like to implement that doesn't seem overly difficult (assuming of course I can program some AI to begin with).
Basically the idea is this. I intend to give all enemies their own individual AI programming, Ideally I would have a few different ones, like this type of monster is aggressive, this other one is cowardly, and this one over here is defensive. However they would all be programmed to behave completely independently with no overall battlefield strategy whatsoever... Unless there is a commander unit present. Lots of games have commander units, but their function usually amounts to being slightly bigger and tougher and maybe you win the battle if you kill them. I intend to put commander units in slightly more vulnerable positions than normal, and program in some various coordinated strategies the enemy will use so long as the commander stays alive.
What I'm looking for is some suggestions on the sorts of tactics I could program in. My criteria, in order to not give myself an insurmountable task, is to make sure that whatever tactic is present in a given battle can be defined by as few criteria as possible.
Ex. Surround - The AI will attempt to position all its units at equidistant points surrounding some defined "center" of the players army before attacking, after having done so units will converge simultaneously (would have to define for the ai what would be "close enough" to trigger the convergence).
Ex. Maximum Casualties - The AI will prioritize defeating individual units at any cost. I thought this one up because I intend to have quests which involve strings of battles in which the player cannot res in between. Having this strategy in play in the beginning of one of these strings could be interesting. Seems reasonable to program in "ganging up" tactics, as well as giving exceptional weight to attacking injured units.
I've had tons of ideas on battlefield strategies I'd like to use, but I'm trying very hard to keep the logic required for the AI to execute them to an absolute minimum. So I'd love to hear some more suggestions, I'd love it if I could have 5ish in total. :)