AI Declares War on Each Other More Updated
UPDATE: Now compatible with the Mod Configuration Tool 2.0! If you don’t use it, mod will use default values. If you do, you can now access a new menu entry for MCT where you can change the values. Bear in mind that the upper bound for the random number MUST be higher than the lower bound and the opinion threshold. Otherwise the script wouldn’t do anything. If you find any issues let me know.
Continuation of Anyndel’s excellent mod. Updated with new script magic so that it works in mp and doesn’t cause desyncs. Should also run better since I made some optimization changes. If you don’t care about the mp compatibility, this alternative version might run faster since it will only do a check at the end of the player turn.
This mod makes it so that AI will be forced to declare war on others if they dislike each other. AI factions will not declare war on each other even if they really dislike each other (even at -1000 standing!) if they are both at war with the human player or if the AI considers they have enough wars going on at the moment, and usually war with the player is enough wars for most factions.
What this mod does is that if an AI faction reaches an opinion threshold (default of -100) or worse with another AI faction, it will roll a random number between 0 and -500 (default). If the standing is less than the random number roll, the AI will declare war. Meaning that starting at -100, an AI has 1 in 5 chances of declaring war to the AI it dislikes, and as the standings deteriorate the more likely it is that they will declare war. At -250 they will have a 50% chance to declare war per turn and at -500 and beyond it will be 100%, though unlikely they will reach that point before having declared war before with this mod.
I’ve excluded vassals and rebel factions from these checks to prevent strange behavior and made them only able to declare a war once per turn. This should help avoid crashes when a player is called in as a defensive ally when multiple wars occur and the UI can’t keep up.
Also bear in mind that this edit will make the AI declare more wars between races that have opinion penalties already, making those races have a harder time (like chaos factions) since they will be at war with a lot of people.
Since this is just a script, this should be compatible with most mods except maybe major overhauls like SFO or what have you. They are massive behemoths and I have no desire to test them specifically, although it should work. Use at your own peril.
Save game compatible and safe to add/remove mid-game.
Ignore out of date warnings, this will be compatible forever. Use Kaedrin’s Mod Manager instead of the CA one.
Special thanks to woadvader on the original mod for his suggestions on how to solve some of the hangs/crashes and performance issues.
Revisions:
Old revisions of this mod are available below. Click the link to download.