Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

LargerThanLife

Uploaded by

LargerThanLife

Virus scan

Safe to use

About this mod

This Mount & Blade II: Bannerlord mod allows you to take control of friendly soldiers when the player gets knocked out during battle. This mod was inspired by Control Your Allies After Death (made by Rafaws). The key difference between these two mods is that this one allows the player to select the friendly unit they wish to control.

Permissions and credits
Changelogs
Post Mortem Possession
This Mount & Blade II: Bannerlord mod allows you to take control of friendly soldiers when the player gets knocked out during battle. This mod was inspired by Control Your Allies After Death (made by Rafaws). The key difference between these two mods is that this one allows the player to select the friendly unit they wish to control.

The mod has some options that can be configured in a json file.
1. allowControlAllies (bool-default true) : if the player should be able to control ally soldiers
1. true: Player can control ally and party soldiers
2. false: Player can only control party soldiers
2. *NEW* allowControlFormations (bool-default true) : if the player should be able to give orders after they have taken control of another soldier
3. muteExceptions (bool-default true) : if exceptions should be posted to the ingame log
4. verbose (bool-default true) : if various status messages should be posted to the ingame log
5. hotkey (string-default "O") : the key that makes you take control of the soldier the camera is currently following
6. messageColor (list-deafult "[128, 128, 128]"): the color of the status messages
7. errorColor (list-default "[128, 0, 0]"): the color of the error messages
8. autoSelectPriorityHotKey (string-default "U") : the key that makes you take control of the next eligible soldier, based on the priorities you have set in autoSelectPriority
9. autoSelectPriority (list-default "[4, 1, 2, 3, 3, 2, 1, 3, 3]") the priority of the different formations/unit groups. The group with the highest formation will be the one the next soldier will be selected from. The next highest priority will be inspected if none are left in the current group and so on. (ties are allowed and will be determined based on autoSelectRandomWithinPriority)
1. party companions
2. infantry
3. ranged
4. cavalry
5. horse archer
6. skirmisher
7. heavy infantry
8. light cavalry
9. heavy cavalry
* The default values are set such that the priority is as follows: (companions) > (cavalry, horse archer, light cavalry, heavy cavalry) > (ranged, skirmisher) > (infantry, heavy infantry)
10. autoSelectRandomWithinPriority (bool-default true) : if ties in autoSelectPriority should be resolved at random. False means the group first in the list will be chosen every time (i.e party companions > infantry > ranged > cavalry > horse archer > skirmisher > heavy infantry > light cavalry > heavy cavalry if we assume that all groups use the same priority)

This is how the config file is structured:


How to

How to control/possess a friendly NPC:
  • Get knocked out :p
  • Follow a friendly soldier with the camera
    • You can do this by getting close to a soldier and then left clicking
  • Hit the key O or U
1. O to select the soldier the camera currently follows
2. U to select the solder that currently has the highest priority
You can repeat this process every time the character is knocked out or killed.

Installation
Extract the zip file into your Modules folder (..\steamapps\common\Mount & Blade II Bannerlord\Modules\). You may have to unblock the dll's.
You can unblock all DLLs in your modules folder by opening powershell in that folder and running this command.
Get-ChildItem -Path './' -Recurse | Unblock-File
You can open powershell in that folder by holding down [shift] and right clicking in the file explorer, and then select "Open PowerShell window here"

The source can be found here Github

Limitations
Bandit hideouts are fucked. You won't be able to complete them if you take control of another character.
You can't select the "retreat" option on the scoreboard if you chose to control an NPC, unless you die again.

Bugs
Post the bugs you find on the Github page.