Mount & Blade II: Bannerlord

File information

Last updated

Original upload

Created by

Aigio L

Uploaded by

AigioL

Virus scan

Safe to use

About this mod

Better training NPC(Wanderer/NobleSpouse/Children) and reset perks / focus / attrs points, add item ammo, use any Longbow on horse back, unlock all items to equip civilians, change the BodyProperties of wanderer, control NPC on the battlefield, set up battlefield commander

Permissions and credits
Changelogs
For the latest version Mod details, see Mount & Blade II Bannerlord\Modules\NPCMasterTrainer\README-EN.html

1. NPC can reset perks / focus / attrs points to better cultivate NPC
2. At present, the legendary smith perk points of the blacksmith department cannot be added due to the bug on the UI, which can be solved through this mod
3. Query the most prosperity towns, which can be used to open leather factories
4. Manually refresh the last position shown by nobles and wanderer in the encyclopedia. Nobles may be in castles or dungeons
5. At present, the list UI in the game is not very good. For example, if you want to know the nobles or vagabonds with the highest bow proficiency, it is too troublesome for each point in the encyclopedia, so you have done the export of town / hero data to CSV, which can be better queried in Excel
6. Can clear the proficiency requirements of all items, and can use noble bow + war horse in the early stage
7. Use any Longbow on horse back, and it is recommended to use noble Longbow immediately
8. Unlock all items to equip civilians
9. Increase the ammunition quantity of arrow / Crossbow / Throwing Axe / Throwing Knife / javelin. Set all the added quantities to 0 in the configuration file, no ammunition quantity can be added
10. Pregnancy allocation and check whether the spouse is infertile and can be treated
11. Change the name of the child to solve the problem that only the first child can be changed after twins are born in the game
12. You can change the BodyProperties of wanderer in the player family, and randomly generate or paste a pinched face data from the clipboard
13. Fix the last Chinese word pasted from the clipboard in the game is garbled
14. Control NPC on the battlefield
15. Number of clonable NPC
16. Configuration generated wanderer gender and cultural filtering
17. Set up battlefield commander
18. Control NPC in army after death

In the game, Ctrl and ~ enable the Developer Console.
Config.json Located in "Mount & Blade II Bannerlord\Modules\NPCMasterTrainer\Config.json" A default profile will be created after starting the game
The export CSV file path is located at "Mount & Blade II Bannerlord\Modules\NPCMasterTrainer\Export"


Config.json Description

Ammunition value range 0 ~ 32767
Other integer values range from 0 to 65535
| Key | Type | Default Value |
| ---- | ---- | ---- | ------------- |
| EnableDeveloperConsole | bool | true |
| ShowWin32Console | bool | false |
| ClearItemDifficulty | bool | true |
| UnlockLongBowForUseOnHorseBack | bool | true |
| UnlockItemCivilian | bool | true |
| AddAmmoByArrow | ushort | 11 |
| AddAmmoByBolt | ushort | 6 |
| AddAmmoByThrowingAxe | ushort | 2 |
| AddAmmoByThrowingKnife | ushort | 13 |
| AddAmmoByJavelin | ushort | 1 |
| EnablePregnancyModel | bool | false |
| CharacterFertilityProbability | float? | null |
| PregnancyDurationInDays | float? | null |
| MaternalMortalityProbabilityInLabor | float? | null |
| StillbirthProbability | float? | null |
| DeliveringFemaleOffspringProbability | float? | null |
| DeliveringTwinsProbability | float? | null |
| MaxPregnancyAge | ushort? | null |
| MaxPregnancyAgeForMeOrMySpouse | ushort? | null |
| AddDailyChanceOfPregnancyForHeroMultiple | ulong | 1 |
| AddDailyChanceOfPregnancyForMeOrMySpouseMultiple | ulong | 1 |
| FixGetClipboardText | bool | true |

Command Description

npc.reset_perks [name] | Reset character perks points in player's army
npc.reset_focus [name] | Reset character focus points in player's army
npc.reset_attrs [name] | Reset character attrs points in player's army
npc.reset [name] | Reset character perks/focus/attrs points in player's army

npc.reset_perks_check_smith [bool] | Check blacksmith skills when setting reset perks points

npc.check_legendary_smith [name] | Check whether the character has legendary blacksmith perks points. The output is in the lower left corner
npc.add_perk_legendary_smith [name] | Add legendary blacksmith perks points to the assigned characters

npc.refresh_last_seen_location | Refresh the last position shown by nobles and wanderer in the encyclopedia.

print.towns_name_prosperity_desc [count] | Display the highest count town names according to the prosperity of the town

export_csv.query_path | Query export CSV file path
export_csv.open_dir | Opens the folder where the CSV file is exported

export_csv.wanderers | Export all wanderers data to CSV file
export_csv.nobles | Export all nobles data to CSV file
export_csv.all_hero | Export all hero data to CSV file

export_csv.all_towns | Export all towns data to CSV file

rename.children [num] | Player's num child rename (Num starts from 1)

npc.check_is_fertile [name] | check whether the hero is fertile
npc.set_is_fertile_true [name] | set hero fertility
npc.set_is_fertile_false [name] | set the hero to be infertile

npc.change_body [name] | To change the kneading data of the specified hero, copy the bodyproperties to the clipboard and execute
npc.random_body [name] | Regenerate a new face kneading data randomly for a given character

npc_control.name [name] | Control designated NPC on the battlefield
npc_control.index [index]
npc_control.next | Control the next NPC on the battlefield
npc_control.next_noble
npc_control.next_wanderer

Arguments Description

count | nonzero positive integer
bool | true or false
name | fixed value [me, all_not_me, wanderer, noble] or English name of the character (change the language to English in [ESC options game settings], and you can see the English name of the character. If there are spaces in the name, you need to use the underscore (_)Replace spaces. If there are multiple duplicate hero, add -2 after the name to specify the second)

Example

npc.reset_perks me
npc.reset_perks all_not_me
npc.reset_perks wanderer
npc.reset_perks noble
npc.reset_perks morcon
npc.reset_perks morcon-2
npc.check_legendary_smith me
npc.reset_perks khachin_the_swift bilik_the_she-wolf
npc.check_is_fertile all_not_me


Source Code

https://github.com/AigioL/MB2Mod.NPCMasterTrainer