Order of AI processing
Posted: Thu Aug 25, 2022 12:53 pm
What order does the AI process AI and Events scripts? I'm guessing AI first and then Events. Within each category, is there a set order (diplomacy first, then research, then units etc.)?
And are all scripts processed before the AI gets to movement/replacement/combat phases? It seems like some scripts fire after they have ended their turn (before it calculates supply leading into my turn).
The reason I ask all this is I'm trying to reorder and tweak events in my personal mod of Call to Arms to reduce AI"cheating" a bit. Specifically the bit where the AI gets hundreds of MPPs worth of free research and diplomacy on Turn 1 (when they have no money (Central Powers) or virtually no money (Allies).
But I want to do this without completely breaking the AI of course, so my thought is to push the dates on these early research and diplomacy events to Turn 2 or later and space them out over multiple turns so the AI has at least some of the money for them (and I don't completely break their ability to fund replacements and purchases on those turns).
My hope is this won't delay the AI research too badly as I've changed to 3 day alternating turns (with start date of Aug 14th when first large scale battle of the war began (Battle of Lorraine)) meaning there are far more 1914 turns to spread the events out over.
And are all scripts processed before the AI gets to movement/replacement/combat phases? It seems like some scripts fire after they have ended their turn (before it calculates supply leading into my turn).
The reason I ask all this is I'm trying to reorder and tweak events in my personal mod of Call to Arms to reduce AI"cheating" a bit. Specifically the bit where the AI gets hundreds of MPPs worth of free research and diplomacy on Turn 1 (when they have no money (Central Powers) or virtually no money (Allies).
But I want to do this without completely breaking the AI of course, so my thought is to push the dates on these early research and diplomacy events to Turn 2 or later and space them out over multiple turns so the AI has at least some of the money for them (and I don't completely break their ability to fund replacements and purchases on those turns).
My hope is this won't delay the AI research too badly as I've changed to 3 day alternating turns (with start date of Aug 14th when first large scale battle of the war began (Battle of Lorraine)) meaning there are far more 1914 turns to spread the events out over.