About this mod
This is a simple mod for AI to execute each other. It's very simple: if an AI hero takes a prisoner (another hero), this AI hero has a probability to execute that another hero immediately. And now you can adjust the execution probability!
- Permissions and credits
- Donations
This is a simple mod for AI to execute each other.
After a hero (for example hero A) is taken as prisoner by another AI hero (for example hero B), AI hero B will do execution on his prisoner (hero A) immediately. However the player (main hero) won't get executed on becoming a prisoner, so there is no need to worry that you will get executed on losing a battle, haha!
Installation:
Unzip the file and put the file under YourGameInstallationLocation\Mount & Blade II Bannerlord\Modules folder.
And then you can active the mod in your Bannerlord Launcher.
The mod will probably work on later versions of the game, if TaleWorlds don't modify their APIs.
---------------------------------------------------------
Update on 2022/12/18:
Now the execution rate (execution probability) can be adjusted in the JimAIExecutionModConfiguration.txt file inside the JimAIExecutionMod mod folder!
after installing the mod, you can now open the mod folder, edit the JimAIExecutionModConfiguration.txt file to adjust the execution rate!
the content of the configuration file is as follows:

DoYouWantGlobalExecutionProbability: Set to 1 to let the following GlobalExecutionProbability become effective.
DoYouWantRelationFactor: Set to 1 to let the following RelationFactor become effective.
DoYouWantTraitAffect: Set to 1 to let the following several TraitLevelFactors become effective.
If you set all the DoYouWant series to 0, the default value of the rates are:

which means 100% execution. No prisoners! XD
The calculating of the execution probability (execution percentage rate) is very simple:
execution percentage rate = GlobalExecutionProbability - RelationOfKillerTowardsPrisoner * RelationFactor - (TraitLevel * TraitLevelFactor)(4 traits)
For example:
My setting now is

If the killer has +30 relation towards prisoner, and has +1 Mercy, -3 Honor, -2 Generosity, +4 Calculating traits. (It's just an example, trait level probably won't go up to level 4.)
(Notice that the DoYouWantGlobalExecutionProbability is set to 0, so it is turned off. So the GlobalExecutionProbability would be default value of 100.)
Then the execution rate would be: 100 - 30 * 1 - 1 * 2 - (-3) * 3 - (-2) * 4 - 4 * 5 = 65
So the killer will have 65% rate of executing that prisoner.
Note that DoYouWant series can only be 0 (off) or 1 (on).
All the other values can be decimals (doubles). For example you can set the RelationFactor to 2.5.
Thank you for viewing! Hope you enjoy the mod!
The mod is learned from Perfect Executioner mod.
The code is opensourced on github: https://github.com/JimLambda/JimAIExecutionMod