Thanks for the clarification ori but it is still murky for me, it really still leaves me with the same basic question, though now rephrased in terms of your text I highlighted above: How often does each AI "do a doWar decision?" it sounds like this 100/50/20/10 or whatever is a modifier to the result of that decision (kind of like a withdrawal chance, how likely is it a result meaning death will be instead ignored), but I'm still in the dark about what the original odds -- (analogous to the attack success odds) are, or how often this "doWar decision is done (and what triggers it).
If there is another thread that would be more appropriate to discuss this in, pointer appreciated!
doWar is called every turn. IF doWar decision is made the game applies the attitude factors and asks whether it ignores it or not (10% means it ignores doWar 10% of the time, 100% means it ignores it 100% of the time).
The doWar mechanism is a dice roll, but before it comes to this the game looks at some xml values for each leader to find out if the leader feels himself strong enough to declare war (those thresholds differ for each leader and for whether the opponent is nearby or on another continent). I can try to dig out the doWar code, but I will certainly not do it in this thread - I don't want to drag it away too far from this wonderful work posted here
