there are many ways to achieve what you are looking for in more or less complicated ways
A good start would be to just more clearly define this: Not turnbased fighting:
Is it not turnbased in the sence that a player cant affect the fight once it starts?
Is it not turn/round based at all and instead you have the units fight in "real time" by calculating some sort of AC ala "Phoenix Command"?
I would assume:
1. Players cant affect things once the fighting really starts.
2. It is roundbased eg: "round 1: Unit A attacks Unit B which defends." and the order within the round being based on some sort of initative.
Then come the values for the units, say that you got Health, Attack, Defence,Speed and Damage.
Let the players then set things like:
at 100% health: 30% Init, 20% Attack 10% Defense, 40% Damage
at 30% health: 10% Init, 0% Attack, 90% Defense 0% Damage and Retreat/Yield/Leave the fighting scene somehow, try to atleast.
Then just fix it up and have your AI be based on any number of thoose settings which could be choosen randomly at every new fight or specified.
The thing is: I dont know how your fight system is supposed to work, is it units or is it man against man? and on and on...