EaW – Standardized AI Peace

If you liked this item, please rate it up on Steam Workshop page.

Author: Electric

Last revision: 28 Apr, 2024 at 01:25 UTC

File size: 43.4 KB

On Steam Workshop

Description:

This is a submod for EaW that makes every nation, regardless of ideology, preform in a "optimal" way during peace conferences. The primary goal is to prevent countries from claiming states that they do not have access to via land or sea. The rules which prevent the ai from claiming states which they can not access are applaied to the player also, but none of the other rules are.

Generally ai will follow this order of operations:
1) take_state if core
2) take_state if claim
3) take_state if can core
4) take_state if annex war goal
5) take core for existing subject
6) take claim for existing subject
7) puppet core for newly created puppet
8) puppet claim for newly created puppet
9) make a puppet
10) just take_state

Additionally, on top of not being allowed to take inaccessable states, here are some more rules for the ai has:
# only take states for yourself or your subjects
# do no liberate
# do not take a state that is a core or claim of an ally (faction member, subject, overlord, new puppet) unless it is also your core or claim or you already own a state that is a core of claim of theirs
# do not take state for an existing subject if that state is their core or claim and also another subject’s (or your own) core or claim
# do not puppet a state if it is not a core or claim of that new puppet
# do not create a puppet without puppeting a core state of theirs first
# do not puppet if all members of the peace confrence are allies (faction member, subject, overlord, new puppet) and you have annex prioroerties on states in the confrence (can core states, annex war goals)
# do not create puppets with conflciting claims or cores on the same turn (causes the ai to wait to puppet a conflicting puppet until an a clean puppeting option emerges by the results of each turn in the ongoing conference)
# do not create a puppet that has conlficting claims or cores with us or an ally
# do not create a puppet that has a core or claim on a state that we or an ally have already confrence claimed

I have workshopped this ALOT trying to get liberating to work or taking states on behalf of other allies but so far there is not a way to do it that doesn’t create a bunch of much other big problems.

Additional notes:
– EaW has some scripts that run after certain wars to "fix" boarders, and I have opted not to mess with those. This means a conference could resolve in one way, and then when back in the game a bunch of new puppets get absorbed into a single puppet or get annexed by their puppet master or something like that.
– Occasionally there can be states that by the end of the conference no one can annex/puppet. See Nova Griffonia in the first screenshot, The Griffonstone Confederation in the second, and Aquelia in the fourth. These remnants aren’t a big problem and can often still be killed at a later date.(Our Town still has a focus to declare on Nova, the Republic still has a focus to declare on Aquelia, and I’m not sure about The Griffonstone Confederation but I think the Empire can still kill it)
– The mod will load after Ghost of Yore, so it is compatable with it also