Crusader Kings III

Crusader Kings III

263 ratings
Vassals To Arms - AI Submod
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
307.835 KB
12 Sep, 2021 @ 5:05am
13 May @ 5:55am
6 Change Notes ( view )

Subscribe to download
Vassals To Arms - AI Submod

Description



Now compatible with version 1.12.*




This mod is a sub mod for the "Vassals to Arms" mod and the base mod is required.
The Vassals to Arms - AI Submod enhances the war decision making of the AI by taking the additional joining characters and their military strength into account.
At the current state, it only considers the strength of the joining attackers (claimants) and the affected defenders (losing titles). The affected defenders (getting a new liege) are currently NOT part of the calculation. Depending on the performance impact I will most likely add this as well in a later update.

If you deactivate a casus belli in the VtA settings, then the new calculation is also not taken for this cb.

Multiple test runs with and without this mod showed for the 867 start date an increase of around 15% more wars in total (mostly county conquest), but less claim wars.
For the 1066 start, the number of wars is nearly the same as before, but also with more county conquests.
Keep in mind, that the AI is sometimes really dumb and will start wars even if it is not a really good pick against the selected character (maybe because it wants to start a war and this is the best one to take, but I honestly don't know).

Currently Working:
  • Claim wars on county, duchy, kingdom and empire (single and multiple targets)
  • De Jure wars
  • Holy wars on county, duchy and kingdom
  • Conquest wars on county and duchy
  • Ducal conquest
  • Clan Invasion / Invasion
  • Struggle Clash

Not Working:
  • Tribal Subjugation
  • Great Holy Wars (Crusade)

Calculation:
The ai_score_mult of the respective casus belli is adjusted. This means, that the AI will now have a lower/higher rating on a specific casus belli compared to before, if the AI is (in terms of military strength) weaker/stronger than the defender.

Calculation Formula:
(((attacker strength + all none subject allies[exclude characters also allied to the defender] strength + claimants strength) / (defender strength + all none subject allies strength + every affected title loss characters strength)) - 1) * 2

Example:
(((3000 + 500 + 0) / (1000 + 0 + 1500)) - 1) * 2 = ((3500/2500) - 1) * 2 = 0.4 * 2 = 0.8

In this case, the attacker is more likely then before to attack the target character (positive result). A negative result would reduce the attractiveness of this casus belli for the AI and it will most likely take another war. The result is limited by a min and max value, depending on the casus belli. The maximum value is higher for more profitable wars. This implies, that a holy war for a county is less interesting for the AI then a holy war for a duchy. The AI will still have to pay the prestige/piety costs for starting the war and if it has not enough, it will therefore not be able to select the duchy one, but take the county war instead.


Modified Files:
  • common/casus_belli_types/00_claim.txt
  • common/casus_belli_types/00_conquest.txt
  • common/casus_belli_types/00_dejure_war.txt
  • common/casus_belli_types/00_invasion_war.txt
  • common/casus_belli_types/00_religious_war.txt
  • common/casus_belli_types/00_subjugation.txt
  • common/casus_belli_types/00_struggle_war.txt
49 Comments
FenFenScreeScree 14 Aug @ 7:06pm 
I've confirmed it's this specific submod that is causing nonstop CTD on start up, so it's got to be conflicting with SOMETHING. I just can't narrow down what it is. It could simply be that it's because I'm using AGOT which is a total conversion. The base mod works fine, just not this one.
Degreeno  [author] 13 May @ 5:55am 
Updated for 1.12
无忧 26 Nov, 2023 @ 12:56am 
怎么不更新了呀
Galishai 17 Nov, 2023 @ 6:56am 
Still working for me in 1.11.x. At least its not crashing the game. :)
Parysz 28 Jun, 2023 @ 11:25am 
Thank you very mutch!
TheLoneWanderer 27 Jun, 2023 @ 5:41am 
Thank you!
Degreeno  [author] 27 Jun, 2023 @ 12:17am 
Updated for 1.9
TheLoneWanderer 19 Jun, 2023 @ 12:21pm 
I could be the 5th person to type "1,9", however I believe that one person posting the message without asking nicely or praising the modder is already bad enough.

I don't think spamming a similar message is going to inspire a modder in the least.

And every subsequent useless message with "1.9" or "update" just sucks the life out of the unpaid modders that choose to work on mods in their free time, and share their effort with the community.
Dawkins 19 Jun, 2023 @ 8:32am 
1.9?
Parysz 15 Jun, 2023 @ 3:34am 
Does it need an update or still works as intended on 1.9?