Thanks for all that information -- this will be useful. In this particular scenario, however, we have a major battle essentially. Everyone is already at war right from the beginning. What I want to see are CIVs that are way more aggressive on the battlefield. The situation is France 1940, with the Allies set for defense and the Germans poised to unleash their invasion.
There's some fighting on Turn 1. But on turn 2, everyone runs for cover rather than duke it out on the field of honor! How embarrassing!
Ahh, you want to look at the leaderhead xml for attack odds change:
<iBaseAttackOddsChange>4</iBaseAttackOddsChange>
<iAttackOddsChangeRand>8</iAttackOddsChangeRand>
These both basically increase the tactical aggression (and optimisim) of an AI by increasing the percieved odds an AI sees for a particular battle. Every turn, an AI does a new random, and uses that optimism level for that whole turn. The number is added to every odds check. So, if an AI had an optimism of say, 20% one turn, that would mean that it would consider an attack that really had a chance of 30% success, to really have a 50% chance of success.
The optimisim number is iBaseAttackOddsChange + random(0-iAttackOddsChangeRand) + random(0-iAttackOddsChangeRand)
(yes it does the random roll twice)
If you want them to be always optimisitic, just change the base number, if you want it to vary from turn to turn, change the random number.
The above numbers, 4 and 8 are for Alexander. By default, every AI has an 8 random, except for barbarians, which have a 16 random (only part of the reason why they can be so suicidal, barbarians also have special code that has them attack at much lower percieved odds). Less aggressive AIs (like Gandhi) have a 0 base add, while Napoleon is the most optimisitic, with a 6 base add.
Do not make these numbers too large, a small change will have a large effect.
I bet its because it is an 'unexpected' war for the AI?
Im probably wrong
It should not be, wars that are created in worldbuilder get a correct plan (the one you have on the left is the one that does the declare, the other is the defender). I do not know how this translates into scenarios.
This would be easy to check, turn on chipotle, using better AI alt over the name in the scoreboard. If the war is lising as an 'unplanned' war, rather than total war, limited war, defensive war, or something else, then this could be part of the problem.
-Iustus