Mount & Blade II: Bannerlord - How to Edit Units

Mount & Blade II: Bannerlord - How to Edit Units

Mount & Blade II: Bannerlord - How to Edit Units image 0

Short guide on how to get started with editing your own units in Bannerlord.

Guide To Edit Units

Getting Started


Mount & Blade II: Bannerlord - How to Edit Units image 4

Right-click on M&B Bannerlord --> Manage --> Browse local files

Modules


Mount & Blade II: Bannerlord - How to Edit Units image 7

Now open the folder: Modules

SandboxCore


Mount & Blade II: Bannerlord - How to Edit Units image 10

Open the folder SandboxCore (ignore the other folders for now).

ModuleData


Mount & Blade II: Bannerlord - How to Edit Units image 13

Now head for the folder ModuleData.

Spnpccharacters.xml


Mount & Blade II: Bannerlord - How to Edit Units image 16

Open the spnpccharacters.xml with any editor (I recommend Notepad++).

But first make a copy just to be safe!


Mount & Blade II: Bannerlord - How to Edit Units image 19

Fin

Before you change anything, make sure you made a copy of the .xml

This should look like this now:

You can skip the following textwall if you want and head to the next section.

Under skills you can change the value of the skills.

Under equipment you can change the equipment the unit has (some might have multiple equipment trees. You can give the trees different equipment, so that the unit gets randomized equipment in battle).

for example: EQ-tree 1 got 1 sword:

  • id="Item.sturgia_sword_2_t3" />

and EQ-tree 2 got an axe:

  • id="Item.sturgia_sword_2_t3" />

Now the unit can hold a sword OR an axe in battle, since both weapons are for item slot 0 ("Item0") so there is a 50% chance for one of the items. If you make 3 different "Item0" weapons there is a 33.333333% chance and so on.


Mount & Blade II: Bannerlord - How to Edit Units image 31Character Section
  • default_group="Infantry" <-------- infantry, archer or chavalry etc
  • level="16" <------- level of the unit
  • civilianTemplate="NPCCharacter.sturgia_troop_civilian_template_t2" <--- Character model
  • name="{=brlJJW5I}Sturgian Veteran Fyrd" <-------- Ingame Name
  • occupation="Soldier" <---- don't change
  • culture="Culture.sturgia" <---- don't change
  • skill_template="NPCCharacter.infantry_heavyinfantry_level16_template_skills"> <--- don't change
Gear Section

<--- Start <...>

  • id="Item.sturgia_sword_2_t3" />

id="Item.sturgia_sword_2_t3" />

id="Item.northern_round_shield" />

id="Item.northern_spear_2_t3" />

id="Item.goggled_helmet_over_leather" />

id="Item.wrapped_scarf" />

id="Item.northern_padded_gambeson" />

id="Item.highland_gloves" />

id="Item.highland_boots" />

<--- end (always with )

Easy isn't it? just don't do any spelling mistakes and it will work out.

Skill Section

Just don't change the names of the "

value="70" />

value="30" />

value="70" />

value="40" />

value="70" />

value="30" />

value="10" />

value="40" />

Facetime. Honestly, i never touched this.

<---- change to make beautiful

But Wait! There Is More!

In the spitems.xml you can find all the precious item-ID's your heart desires.

Now have fun messing with the game. 

The Original Xml Is Gone! What Now?!

If you f'ed it up and forgot to make a copy of the xml. you can always delete it and repair M&B Bannerlord via Steam. After that, the old xml should be back.

Timesaver

Copy the xml, and edit the copy on a second screen, while playing. so you can look up the armor etc ingame.

How To Get All Items Ingame

\documents\mygames\Mount and Blade II Bannerlord\Configs\engine_config.txt ---> cheat_mode = 0

Change the 0 to a 1.

Now you are able to look up all ingame items if you open your inventory. and then search for the ID in the spitems.xml via search.

Source: https://gameplay.tips/guides/7337-mount-and-blade-ii-bannerlord.html					

More Mount and Blade II Bannerlord guilds