Total War: WARHAMMER III

Total War: WARHAMMER III

319 ratings
AI Declares War
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: mod
File Size
Posted
Updated
254.258 KB
21 Oct, 2023 @ 1:48pm
27 Sep, 2024 @ 5:14pm
10 Change Notes ( view )

Subscribe to download
AI Declares War

In 2 collections by Think Critically
SFO Landmarks and Legends 4.1 Updated
385 items
SFO MP 5.2
330 items
Description
Welcome Back, Commanders
This is a script which forces AI to declare war against factions they have a low opinion of. I found that it increases the performance of the AI. Without a war target, AI can become passive and stagnate but once they have a goal they will form a true empire.

By default, the chance of a war declaration increases exponentially from 0% to 100% as opinion decreases from -100 to -200. There are a variety of configurable features and I have added MCT support. The default settings are what I recommend.

Using MCT, you can make my script behave identically to other War Declaration scripts, like making war declaration guaranteed at opinion -50 or making war declaration a constant 10% at opinion -150 like FiftyTifty's removed script. However, MCT is not required for my mod to function. If you want to increase chance of war, you can raise Base Chance, Scaling Chance, or move either opinion threshold towards 0. To decrease chance of war, do the opposite.

Default Functionality
If the AI has an opinion lower than -100 towards a faction, then we will roll a random chance to see if we declare a war. The random chance is calculated using an exponential formula. -100 opinion or better means 0% chance, -150 opinion means 9% chance, -175 opinion means 31% chance, and -200 opinion means 100% chance. These values might seem low, but over multiple turns even a low chance of war declaration can guarantee war. For example, a 25% chance of war is actually around 80% chance of war within 5 turns. Interactive Desmos link[www.desmos.com]

By default, the AI will declare war on humans AND AI. When war is declared, the attacker's military allies and the defender's allies will both join the war. This script will never force declare war on a vassal or rebel faction, and a rebel or vassal faction will never be forced to declare war. Additionally, a faction will never be forced to declare war on it's own vassal, ally or client state.

This mod also detects the most recent peace treaty offer between two factions and will not force another war until 10 turns(configurable) after the peace treaty. When a peace offer is rejected, it doesn't matter and when one is accepted it must be the most recent peace offer between those factions. Unfortunately, this does not detect when a script skips the offer and forces a peace treaty.

Finally, war will not be forcibly declared by a faction that is already in 4 or more wars. However, nothing stops other factions from forcing more than 4 wars on them. This script can only cause 1 war declaration per ai per turn to avoid issues.



MCT Settings
Target Human - Should the script make AI declare war on humans? Default: True
Invite Aggressor Allies - Should the script make AI attacker's military allies join the war? Default: True
Invite Target Allies - Should the script make AI defender allies join the war? Default: True
Max Wars - If the AI is already in this many wars, it will not be forced to declare more. -1 is unlimited. Default: 4
Grace Turns After Peace - Wait this many turns before trying to force war between two factions who signed a peace treaty. Default: 10

When opinion is above the Base Opinion Threshold, this script will not run.

Scaling Mode
If Opinion Floor is lower then the Base Opinion Threshold, then scaling mode is enabled and the chance of a war declaration will exponentially increase from the Base Chance to the Max Scaling Chance as opinion decreases from the Base Opinion Threshold to the Opinion Floor. Below the floor, the chance will be Max Scaling Chance. You can set Max Scaling Chance above 100 without issues to increase the rate war chance increases. In between the threshold and the floor, the formula for chance of war declaration can be found at the Desmos link.[www.desmos.com]

Fixed Mode
To disable scaling mode, set the Opinion Floor higher than Base Opinion or set Max Chance lower than Base Chance. When scaling mode is disabled, the chance of war declaration will simply be the base chance.

For example, to mimic FiftyTifty's script which has a fixed 10% war chance below -150 opinion, use
Base Opinion Threshold: -150
Opinion Floor: -150
Base Chance: 10
Max Scaling Chance: 10
Opinion floor could be any number higher than -150 and scaling chance could be any number less than 10 and my error handling would make it act like this.

Compatibility
There should be no compatibility issues with any mods. This should work with AI overhauls because my mod directly declares war, it does not interfere with them. It also works with script based mods like Bring the Boys home. The only issues are with mods that FORCE peace. This mod won't detect the treaty and might force war again. However, this is not campaign breaking. I believe it is multiplayer-safe and also safe to remove or add during a campaign but I could be wrong. Let me know in the comments if it works or doesn't work for those cases.

Inspired by Make AI declare war on other AI more often
All my mods are compatible with SFO.
169 Comments
Ooh-la-la, It's GAGA!! 7 Jul @ 4:12am 
No need in updates?
warbossrok 12 Jun @ 5:56pm 
Same, this mod is absolutely amazing.
Slaanesh 27 May @ 2:30am 
This mod is one of the most important mods in my personal setup. One can mixture about with the campaign AI trying to improve it's performance but without atleast one constant war target the AI starts to perform poorly. This mod has given me several great campaigns that have been more brutal than any unmodded Legendary campaign before it has. It does have the issue of not seeing the war declarations but that's a minor price to pay.
Espritviril`` 24 May @ 12:53am 
Goated mod.
warbossrok 31 Mar @ 2:07pm 
Anyone worked out how to fix this?
MJD 18 Mar @ 1:30am 
Is there a way to add back in the diplomacy screen when the AI declares war on you?
BulleTgt 19 Feb @ 8:20am 
Nice mod. But it seems that script doesn't work when Base opinion Threshhold (-200) equals opinion floor (-200). As soon as I changed it to -175 and -200 I got 20+ war declarations in a single turn lol
Gyrofrax 21 Jan @ 5:10pm 
mod works great but theres no war declaration pop up when the script triggers. You basically have to manually check your diplomacy tab to see who has declared war on you each turn. Mod works great otherwise.
Nexion 3 Jan @ 3:16am 
there is a bug where it wont show anymore if someone declared war on you. The Window which appears when someone declared war wont show up.
Ben 29 Dec, 2024 @ 11:55am 
is there any way to force all AI to be at war with everyone? :)