Simple Code Share. Troops and Food. OUTDATED! No Longer Maintained. Thank you.

Mount & Blade II: Bannerlord2.1k views15 favorites3 min readby ScottUpdated 15 Sep, 2025View on Steam ↗

The Simple Basics.

A simple guide on the creation of Troops and Food.

Access to the Developer (dev) console is exceptionally well documented online. For the purpose of this guide, Developer Console Commands By Sjurdur is a fantastic guide:
https://steamcommunity.com/sharedfiles/filedetails/?id=2049044264

The 'why' is simple. An Army marches on its stomach. Here is your Army and here is your stomach:

1. Using this guide, with your mouse, left click and hold to highlight the line: campaign.give_troops With the line highlighted, press and hold CTRL and press c.
2. In game, open the dev console.
3. click in the text box and press and hold CTRL and v.
4. This is a simple Copy (CTRL+C) and Paste (CTRL+V) of the text campaign.give_troops
5. Repeat this and select your desired Troop Id: For Example:

campaign.give_troops aserai_mameluke_guard 10

You use the same process to give your Army food.

If you use the fantastic and fun Bannerlord Cheats Mod, created by NicoWaves, https://www.nexusmods.com/mountandblade2bannerlord/mods/1839
you can have a lot of fun with this. Here is an example based on an Imperial Army and using Bannerlord Cheats Mod:

campaign.give_troops imperial_cataphract 2000
campaign.give_troops imperial_sergeant_crossbowman 2000
campaign.give_troops imperial_legionary 2000
campaign.give_troops imperial_veteran_infantryman 2000
campaign.give_troops imperial_veteran_archer 2000
campaign.give_troops imperial_heavy_horseman 4000

That is a 14k (14000) strong Army that will be siege and battlefield ready with a good Leader (YOU) an Engineer and Medic Companion. Here is how to sustain the stomach that it marches on and feed them:

campaign.give_item_to_main_party meat 1000
campaign.give_item_to_main_party fish 1000
campaign.give_item_to_main_party beer 1000
campaign.give_item_to_main_party grape 1000
campaign.give_item_to_main_party grain 1000

Cheese = cheese
Butter = butter
Fish = fish
Meat = meat
Grapes = grape
Grain = grain
Dates = date_fruit
Olives = olives

Now that you have successfully learned the basics, here are the codes:

campaign.give_troops [TroopId] [Number].

@Troop ID CodesAserai:

Id: aserai_mameluke_guard

Id: aserai_veteran_infantry

Id: aserai_master_archer

Id: aserai_infantry

Id: aserai_archer

Id: aserai_footman

Id: aserai_skirmisher

Id: aserai_faris

Id: aserai_mameluke_cavalry

Id: aserai_mameluke_regular

Id: aserai_mameluke_soldier

Id: aserai_militia_spearman

Id: aserai_militia_archer

Id: aserai_tribal_horseman

@Battania:

Id: battanian_wildling

Id: battanian_oathsworn

Id: battanian_picked_warrior

Id: battanian_falxman

Id: battanian_trained_warrior

Id: battanian_skirmisher

Id: battanian_highborn_warrior

Id: battanian_militia_spearman

Id: battanian_militia_archer

Id: battanian_clanwarrior

Id: battanian_volunteer

@Khuzait:

Id: khuzait_heavy_lancer

Id: khuzait_heavy_horse_archer

Id: khuzait_darkhan

Id: khuzait_marksman

Id: khuzait_lancer

Id: khuzait_militia_spearman

Id: khuzait_militia_archer

Id: khuzait_spearman

Id: khuzait_hunter

Id: khuzait_nomad

@Empire:

Id: imperial_cataphract

Id: imperial_legionary

Id: imperial_sergeant_crossbowman

Id: imperial_crossbowman

Id: imperial_veteran_infantryman

Id: imperial_veteran_archer

Id: imperial_trained_infantryman

Id: imperial_trained_archer

Id: imperial_heavy_horseman

Id: imperial_equite

Id: imperial_infantryman

Id: imperial_archer

Id: imperial_militia_spearman

Id: imperial_militia_archer

Id: imperial_recruit

@Sturgia:

Id: sturgian_horse_raider

Id: sturgian_veteran_warrior

Id: sturgian_veteran_bowman

Id: sturgian_hardened_brigand

Id: sturgian_spearman

Id: sturgian_archer

Id: varyag

Id: sturgian_briggand

Id: sturgian_hunter

Id: sturgian_warrior_son

Id: sturgian_warrior

Id: sturgian_militia_spearman

Id: sturgian_militia_archer

Id: sturgian_recruit

@Vlandia:

Id: vlandian_champion

Id: vlandian_gallant

Id: vlandian_vanguard

Id: vlandian_light_cavalry

Id: vlandian_sharpshooter

Id: vlandian_sergeant

Id: vlandian_billman

Id: vlandian_infantry

Id: vlandian_footman

Id: vlandian_voulgier

Id: vlandian_crossbowman

Id: vlandian_militia_spearman

Id: vlandian_militia_archer

Id: vlandian_recruit

Spawn Items: campaign.give_item_to_main_party

Cheese = cheese
Butter = butter
Fish = fish
Meat = meat
Grapes = grape
Grain = grain
Dates = date_fruit
Olives = olives
Beer = beer

Summary. You have now learned how to gain and access the dev console. You learned how to create an Army and sustain it. I wish you many hours of happy gaming.

This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.