File information

Last updated

Original upload

Created by

Cheyron

Uploaded by

Cheyron

Virus scan

Safe to use

About this mod

AI battles going on around the map now have the defending leader consider surrender depending on their valor and their troop count against the attacker's troop count. If the defender does not surrender then all nobles involved in the battle are evaluated to see if they are KIA. Siege surrender works fine. It has been tested.

Requirements
Permissions and credits
Translations
  • Turkish
  • Russian
  • Mandarin
  • Korean
Changelogs
Donations
Subscribe to me on YouTube!

Support me on Patreon!

Supporters on Patreon will be invited to my discord where I can help you with modding or you can have a place to discuss Bannerlord and modding. Additionally, you can click the donate button on my mod pages or profile to show support by donating to my paypal!

AI Values Life handles death for NPCs in simulated battles around the map. If you want to handle deaths in the player mission battles, that is my other mod, Heroes Must Die! You should use both together!!

INTRO:


The one thing that annoyed me in Warband was how jails had revolving doors on them... war was not dangerous for anyone... it was just a big silly game, I hated it in Warband and I hate it now. Nobody valued their own life. Now people can die, the way war should be. I have yet to see an AI die by the game natively so maybe they do but I have yet to see it happen even when I enable death, which I think is just for the battle the player is involved in. This is what made me write this and I have been using it for a few days now and it seems to work well. Use this in conjunction with my edit for EvilNobleman's Executioner mod. This mod and my executioner edit can be loaded together without any conflict and together offer the best experience. There are multiple executioner mods too and you can pick the one you think is best.

HOW IT WORKS:
Whenever a "map event" or battle goes on around the map, this script will check the defending lord's troop count against the attacker and it will consider his valor to decide if he should surrender or not. Then if the defender qualifies for surrender, there is still some random chance they might not surrender. This mechanic will reward nobles with larger armies that can trap a smaller army. They don't have to lose troops. I feel like this is balanced because smaller armies have speed on their side. If a defender chooses not to surrender then the battles proceeds and all nobles involved in the battle are evaluated to see if they die. This has rng involved but nobles with higher valor have a higher chance of dying since being brave in a battle can get you killed easier. So high valor will help the AI to not surrender but then it works against them in battle. The script also considers the number of troops for a noble's army in this death evaluation. Outnumbering the enemy helps keep the noble alive. Which is why surrendering is a valid choice to make now.

Note: It seems surrender to the player has been confirmed by a user and it caused every troop in the defender army to become wounded and he had to fight a battle with his entire army against the AI hero. Now in version 1.1.0, I will be wounding the AI heroes that surrender to see if this avoids the battle and leads straight to a surrender. I have a feeling the game might load the scene and it will be instantly over. This feature is untested by me and will need you guys to test and report to me in detail how the game reacts or if any crashes then I need screen shots of the error. Thanks to @Xentatic for providing this info. I still want to eventually override the game's default behavior to show the cutscene, I would need to change that cutscene to become a negotiation for surrender or something.

The goal is for nothing to out of control with people dying and a kingdom getting snowballed. You shouldn't see the message often but it will happen. Tweaks can always be made based on your feedback. I do read all comments and respond to them.

Who dies?
Basically in order to qualify for the 2% (v1.0.5) probability RNG test... a hero needs to have 1 or less points in my algorithm. Attackers start with 1 point and defenders start with 0 points. People with positive valor, lose a point and people with negative valor gain a point. If a heroe's army has < 2/3 the enemy's army they lose a point. If their enemy has < 2/3 their own army, they gain a point. So attackers have the advantage to start but then valor and troop count could drop their points to 0 or less and then it is possible with a 2% probability for them to die.

During Debug I was Displaying The Points On The Left:

Serves the SOB right for attacking a caravan.

RIP:


Don't forget to check out my other mods...

AI Defend Yourself
AI Executioner
AI Values Life
Another Cheer Mod
Camp Followers
Campaign Helper
Command Faction Parties
Dead Mod Pack *Numerous mods I updated for later Bannerlord versions, some improvements made, written by various authors.
Raiding Culture Influence Fix
Friendly Fire *Edited version of Xorberax Friendly Fire
Garrison Do Something
Gender Inequality
Heroes Must Die
History Channel Vikings
Horse Call Edit *Edited version of Horse Call
Horses Die
I'm Tired
Party Speed Tweakable
Player Execution Patch
Player Switcher
Realistic Prisoner
Realistic Scouting
Real Spacetime Continuum Mod
Save Battle Formation
Supply Lines
Town Magistrates
Workshop Manager