Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

ThisIsSovereign

Uploaded by

ThisIsSovereign

Virus scan

Safe to use

About this mod

Prevents clans from defecting from or leaving the player's kingdom, unless the leader's relationship with the player is low. Thresholds for leaving are based upon the clan leader's relationship with the player, and varies based upon the clan leader's Honor trait. All thresholds are configurable.

Requirements
Permissions and credits
Translations
  • Mandarin
Changelogs
Donations
The goal of this mod is to prevent clans from defecting from or leaving the player's kingdom, unless the leader's relationship with the player is low (threshold is configurable). I got tired of clan leaders I had a positive relationship with, or had given fiefs to etc, still defecting from my Kingdom.

This is achieved with a Harmony Prefix patch of the following methods found in TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.BarterBehaviors.DiplomaticBartersBehavior:

ConsiderDefection(Clan, Kingdom)
ConsiderClanLeaveKingdom(Clan)
ConsiderClanLeaveAsMercenary(Clan)

The Harmony patch applies logic that prevents these methods from running for a clan that is in a Kingdom where the ruling clan is the player's clan, with a leader whose relationship is above a configurable threshold with the player. How Honorable the clan leader is affects the threshold. Otherwise, the methods run as normal and the clan may leave the Kingdom. The minimum required relationship with the player is adjustable in the Mod Options menu. There is also three global toggles for whether all clans are allowed to defect from/leave/leave as mercenary. This applies to clans in every Kingdom, not just the player's, and overrides any other settings set in the mod - this is Disabled by default.

Known Compatibility Issues
  • The Community Patch currently must be placed at the bottom of your load order, as it performs a main menu cleanup which breaks mods using MBOptionScreen - the Community Patch team is implementing a fix in their next version. The game will crash at the main menu if you do not follow this instruction.
  • Defection Overhaul has been tested on version e1.3.0 and Beta e1.4.0.

Potential Future Features
  • Open for suggestions

Tools Used
Harmony Library - https://github.com/pardeike/Harmony
Mod Configuration Menu (MBOptionScreen) 2.0.10 - https://github.com/Aragas/Bannerlord.MBOptionScreen

Other Mods by ThisIsSovereign
Jötnar of Sturgia - Jötnar of Sturgia adds a new race of troops to the Sturgian Principality, the troop tree consists of a total of 15 troops spread across tiers 2-6, as well as a new clan, and associated settlements. The goal was to incorporate giants (Jötnar plural, Jötunn singular), from Norse mythology in as lore friendly a way as possible - by building off of the fact that the Nordic people are referenced in the game, and Raganvad's mother is a Nordic princess. These troops are intended to be slightly uncommon, somewhat in the vein of noble troops in Vanilla. By default 20% of Sturgian Recruits are replaced with Jötunn Recruits, this maps to the branching higher tiers.

Honorbound - Honorbound expands upon the Vanilla handling of lords you successfully persuaded to join your Kingdom - adding many conditions for personality traits besides only positive Honor. Valorous, Generous, and Merciful lords will join without needing to be bartered with, while Closefisted lords will require a bribe even if they are Honorable!