Hi, been a year since I discovered this site, and recently my DaoE craving has returned.
Being a computer science major, I'm interested in the development of AI's. So I decided to make a java AI that fights DaoE battles. I'll make a bunch of different AI's and I'll simulate thousands/millions of battles between them, to determine the optimal strategy for any situation. Then I can include 2-player or 1-player mode where you can battle against the AI or someone else, and manually set the starting armies, tactics, items, and terrain.
This project will be fairly straight-forward, except for a few things: built-in variables and formulas. I'd like to know the following:
1) How is an attack's damage calculated? I know it's a function of #troops, strength, weapon, and enemy armor, but does anyone know the exact formula?
2) What are the odds of doing heavy damage?
3) What are the odds of an attack getting repelled?
4) What formula (function of Agility) determines the order of who attacks?
4b--Does your formation have any affect on who attacks first among your own generals?
5) What formula (function of INT of attacker & defender) determines whether a tactic succeeds or fails?
6) What are the odds of a tactic like Ji Mian or Ce Mian wearing off in a given round?
7) What formula determines how much damage a successful fire or water tactic does?
8] What formula determines how many troops are healed by a healing tactic?
9) What are the odds of the standard AI attacking your front general? your 2nd? etc. (for a separate purpose of designing my AI to choose the optimal formation against the standard AI).
If no one knows these things, I'll just do the simulations while varying these numbers, and record different results for different conditions. I could also start taking stats during my DaoE battles to get estimates.



