Bannerlord.GameMaster
BLGM provides the ability to generate and manage kingdoms, heroes, wanderers, clans, and tools to control, upgrade, and change ownership of settlements. Easily add members to your clan, or clans to your kingdom and way more. A powerful query system is also included, allowing you to easily add items, modifiers, and troops as well.
Complete Documentation on GitHub Wiki[github.com]
The GitHub Wiki is very useful for explaining and describing each command, and advance usage of commands.
Console commands and framework, providing Kingdom, Settlement, Hero, Clan, Item, and troop management. All commands provide the ability to use object names, or object ids as arguments as well as a query system to search and find objects.
You can enter any command without any arguments to see more information on the command.
Type gm. into the console for command discovery
- Hero Management – Create, equip, and rename heroes, modify attributes, relationships, and more
- Settlement Management – Upgrade buildings, rename, change culture, modify prosperity, loyalty, and more
- Clan Management – Create Clans, control membership, finances, renown, leadership
- Kingdom Management – Create NPC Kingdoms, Handle diplomacy, settlements, clan membership
- Troops Management – Easily add troops to any heroes party.
- Item Management – Full inventory/equipment control with quality modifiers
- Equipment Save/Load – Save and load hero equipment sets to files
- Advanced Queries – Powerful search with AND/OR logic, sorting, filtering
- Command Logging – Track all command usage for debugging
- Testing Framework – Setup and run automated tests.
- Convenience Features – Use Ids or names, and even partial matches. Positional and named arguments using ArgName:ArgValue
Tested With: Bannerlord 1.3.9, 1.3.10, 1.3.11, 1.3.12, 1.3.13, and works with or without War Sails.
Note: Some commands may not execute if certain menus are open
BLGM extends Bannerlord’s console with powerful commands for managing heroes, clans, kingdoms, items, and game state. This mod is useful for taking control of your game, testing things out, fixing saves, or whatever other reason you may need to take control of your game. Add family members or companions to your clan, add clans to your kingdom, create clan parties exceeding your party limit, quickly add troops or items, instantly upgrade all buildings in a settlement or raise the settlements prosperity, and much more. The GitHub wiki lists and explains every command and their usage..
The purpose of this mod is mainly for my own use as a foundation for another mod I am working on, but it is extremely useful to anyone who wants to take control of their game, or gain access to tools and the ability to do things easily that the game normally would not allow. This mod can also be useful to other modders who want to test and debug their mod by quickly changing game state or creating scenarios, or to even incorporate into their mod to gain quick access to functionality the mod provides.
All commands use the `gm.` prefix for easy organization.
All commands can be used by targeting entity names or entity Ids. A query system is also included for quickly searching for entities.
Command Structure:
Example Commands:
Use powerful queries to search and filter:
- Basic:
gm.query.hero <terms>
,
gm.query.item <terms> - AND logic:
gm.query.hero empire lord
(empire AND lord)
- OR logic:
gm.query.hero OR empire battania
(empire OR battania)
- Sorting:
gm.query.item bow sort:value:desc
(descending value)
- Filtering:
gm.query.item armor tier5
(tier 5 armor only)
Sort Options: name, value, tier, type (add :asc or :desc)
Multi-word Parameters: Use single quotes to use arguments with spaces ex: ‘Multi word argument’
Hero Commands: create_lord, generate_lords, set_gold, set_health, set_age, kill, imprison, release, teleport, set_clan, set_relation, create_companions, add_hero_to_party, rename, create_party
Full Documentation →[github.com]
Clan Commands: create_clan, add_hero, remove_hero, set_gold, add_gold, distribute_gold, set_renown, set_tier, set_leader, destroy, rename, set_culture, generate_clans, Create_minor_clan
Full Documentation →[github.com]
Kingdom Commands: create_kingdom, generate_kingdoms, add_clan, remove_clan, declare_war, make_peace, set_ruler, destroy, declare_alliance, trade_agreement, pay_tribute, get_tribute_info
Full Documentation →[github.com]
Item Management: add, remove, remove_all, transfer, equip, unequip, equip_slot, unequip_slot, list_equipped, list_inventory, set_equipped_modifier, set_inventory_modifier, save_equipment, save_equipment_civilian, save_equipment_both, load_equipment, load_equipment_civilian, load_equipment_both
Full Documentation →[github.com]
Settlement Management: set_culture, set_owner, set_owner_clan, set_owner_kingdom, upgrade_buildings, add_militia, fill_garrison, give_food, give_gold, rename, reset_name, reset_name_all, set_hearths, set_loyalty, set_prosperity, set_security, spawn_wanderer, create_notable_caravan, create_player_caravan
Full Documentation →[github.com]
Troop Commands: give_hero_troops, add_basic, add_elite, add_mercenary, add_mixed
Full Documentation →[github.com]
Query Commands: hero, clan, kingdom, item, modifiers, culture, character
(all support AND/OR logic, sorting, filtering)
Full Documentation →[github.com]
- Backup your saves – Many commands make permanent changes
- Some actions are irreversible – Killing heroes, destroying clans
- Multi-word Parameters: Use single quotes to use arguments with spaces ex: ‘Multi word argument’
- Renaming Settlements – Name may not update right away. Open trade menu in settlement or load save to force update.
For complete command documentation with all parameters and examples, visit the GitHub Wiki[github.com].
Revisions:
Old revisions of this mod are available below. Click the link to download.