-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
Type: API Documentation BLGM Version: v1.3.14.11 Game Version: v1.3.14 Last Updated: 3/3/2026
This page provides a complete reference to all Bannerlord GameMaster console commands. Commands are organized into nine major categories, each addressing different aspects of game management and control.
All commands use the gm.<category>.<command> pattern and support flexible entity identification through partial names, StringIds, and the powerful query system.
Commands: 40 | Status: STABLE
Manage individual heroes including their attributes, skills, relationships, health, and state. Control character creation, modification, appearance editing, imprisonment, and death.
Commands: 18 | Status: STABLE
Create and manage clans, control membership, manage resources, and handle political affiliations. Build dynasties and manage clan hierarchies.
Commands: 17 | Status: STABLE
Build and manage kingdoms, control diplomacy, manage clan membership, and shape the political landscape of Calradia.
View Kingdom Management Commands
Commands: 19 | Status: STABLE
Control settlements including cities, castles, and villages. Manage properties like prosperity, loyalty, security, and hearths. Control resources, military strength, building development, and spawn NPCs and caravans.
View Settlement Management Commands
Commands: 4 | Status: STABLE
Control bandit parties and hideouts across Calradia. Monitor bandit populations, selectively remove parties by type, clear hideouts, and manage overall bandit presence for custom difficulty and gameplay scenarios.
View Bandit Management Commands
Commands: 8 | Status: STABLE
Create and manage trade caravans across Calradia. Control caravan ownership between player, notables, and NPC lords. Count existing caravans, disband caravans by owner type, and customize the economic landscape through strategic caravan management.
View Caravan Management Commands
Commands: 7 | Status: STABLE
Add troops to hero parties, upgrade troops to higher tiers, and grant experience points for troop progression. Build balanced military forces and strengthen armies with specific troop types.
View Troop Management Commands
Commands: 20 | Status: STABLE
Complete inventory and equipment control including adding items with quality modifiers, managing equipment slots, and saving/loading equipment sets.
Commands: 18 | Status: STABLE
Advanced search and filtering system for heroes, clans, kingdoms, troops, and items. Supports complex queries with multiple filters, sorting, and detailed information display.
| Category | Commands | Primary Use | Overview Page |
|---|---|---|---|
| [HERO] Hero | 40 | Character management and modification | API-Hero-Overview |
| [CLAN] Clan | 18 | Clan operations and membership | API-Clan-Overview |
| [KINGDOM] Kingdom | 17 | Kingdom control and diplomacy | API-Kingdom-Overview |
| [SETTLEMENT] Settlement | 19 | Settlement properties and resources | API-Settlement-Overview |
| [BANDIT] Bandit | 4 | Bandit party and hideout control | API-Bandit-Overview |
| [CARAVAN] Caravan | 8 | Trade caravan control | API-Caravan-Overview |
| [TROOP] Troop | 7 | Military force management | API-Troop-Overview |
| [ITEM] Item | 20 | Inventory and equipment control | API-Item-Overview |
| [QUERY] Query | 18 | Search and filter entities | API-Query-Overview |
Total Commands: 139
All commands follow this structure:
gm.<category>.<command> <required_params> [optional_params]
Hero Command:
gm.hero.set_gold hero_name 5000
Clan Command:
gm.clan.add_member hero_name clan_name
Kingdom Command:
gm.kingdom.declare_war kingdom1 kingdom2
Item Command:
gm.item.add hero_name item_name --modifier masterwork --quantity 5
Query Command:
gm.query.hero --name "John" --culture empire --age>25 --sort age
| Notation | Meaning | Example |
|---|---|---|
<parameter> |
Required parameter | <hero_id> |
[parameter] |
Optional parameter | [quantity] |
--flag |
Optional flag | --modifier |
value1|value2 |
Choice between values | male|female |
Supported Formats:
- Full name:
"Lucon of the Empire" - Partial name:
"Lucon" - StringId:
"lord_1_1" - Partial StringId:
"lord_1"
Matching Behavior:
- Case-insensitive search
- Partial name matching supported
- Ambiguous matches prompt for selection
- Query commands for precise ID lookup
| Type | Description | Example |
|---|---|---|
string |
Text value, single quotes if spaces |
'Long Bow' or sword
|
int |
Whole number | 100 |
float |
Decimal number | 25.5 |
bool |
True or false |
true or false
|
IMPORTANT: Arguments with Spaces
The TaleWorlds console removes double quotes from arguments, so you must use single quotes for multi-word arguments:
gm.hero.create_lord male 'John Smith' empire # Correct
gm.settlement.rename pen 'Castle of Stone' # Correct
gm.clan.create_clan 'The Highland Clan' derthert # Correct
Before using management commands, use queries to find exact IDs:
gm.query.hero lord empire
gm.query.clan battanian
gm.query.kingdom
gm.query.item sword tier>3
- Query - Find the entity ID
- Verify - Check entity details
- Modify - Execute management command
- Confirm - Query again to verify changes
# 1. Find hero
gm.query.hero --name "Lucon" --details
# 2. Modify hero gold
gm.hero.set_gold lord_1_1 10000
# 3. Verify change
gm.query.hero --id lord_1_1 --details
Commands that modify game state:
- Hero Management - Character control
- Clan Management - Clan operations
- Kingdom Management - Kingdom control
- Settlement Management - Settlement properties and resources
- Bandit Management - Bandit party and hideout control
- Caravan Management - Trade caravan control
- Troop Management - Military forces
- Item Management - Inventory control
Commands that search and display information:
- Query Commands - Entity search and filtering
Commands that control mod behavior:
- System-Commands-Overview - Logging and testing
The query system provides powerful filtering and sorting:
Multiple Filters:
gm.query.hero --culture empire --age>25 --trait brave --sort age
Boolean Logic:
gm.query.clan --tier>3 OR --renown>500
Sorting:
gm.query.kingdom --sort name
gm.query.hero --sort age --desc
Add items with specific quality levels:
gm.item.add hero_name "Long Bow" --modifier masterwork
gm.item.add hero_name "Steel Sword" --modifier legendary
Available Modifiers:
- rusty, chipped, bent, crude, sturdy, fine, masterwork, legendary
Save and load complete equipment configurations:
gm.item.save_equipment hero_name "Knight Build"
gm.item.load_equipment hero_name "Knight Build"
gm.item.list_equipment hero_name
🏠 Home | Quick Reference | Syntax Guide
Hero Commands
- gm.hero.abort_pregnancy
- gm.hero.add_gold
- gm.hero.add_hero_to_party
- gm.hero.create_companions
- gm.hero.create_lord
- gm.hero.create_party
- gm.hero.divorce
- gm.hero.edit_appearance
- gm.hero.edit_party
- gm.hero.equip_hero
- gm.hero.export_character
- gm.hero.generate_lords
- gm.hero.give_birth
- gm.hero.heal
- gm.hero.import_character
- gm.hero.impregnate
- gm.hero.imprison
- gm.hero.kill
- gm.hero.list_appearances
- gm.hero.list_characters
- gm.hero.list_developments
- gm.hero.list_traits
- gm.hero.load_appearance
- gm.hero.load_character
- gm.hero.load_development
- gm.hero.load_traits
- gm.hero.marry
- gm.hero.open_inventory
- gm.hero.release
- gm.hero.remove_clan
- gm.hero.rename
- gm.hero.save_appearance
- gm.hero.save_development
- gm.hero.save_traits
- gm.hero.set_age
- gm.hero.set_clan
- gm.hero.set_culture
- gm.hero.set_gold
- gm.hero.set_relation
- gm.hero.start_convrsation
Clan Commands
- gm.clan.add_gold
- gm.clan.add_gold_leader
- gm.clan.add_hero
- gm.clan.add_renown
- gm.clan.create_clan
- gm.clan.create_minor_clan
- gm.clan.destroy
- gm.clan.edit_banner
- gm.clan.equip_heroes
- gm.clan.generate_clans
- gm.clan.give_gold
- gm.clan.rename
- gm.clan.set_culture
- gm.clan.set_gold
- gm.clan.set_leader
- gm.clan.set_renown
- gm.clan.set_tier
- gm.clan.sync_kingdom_colors
Kingdom Commands
- gm.kingdom.add_clan
- gm.kingdom.call_ally_to_war
- gm.kingdom.create_kingdom
- gm.kingdom.declare_alliance
- gm.kingdom.declare_war
- gm.kingdom.destroy
- gm.kingdom.edit_banner
- gm.kingdom.equip_heroes
- gm.kingdom.generate_kingdoms
- gm.kingdom.get_tribute_info
- gm.kingdom.make_peace
- gm.kingdom.pay_tribute
- gm.kingdom.remove_clan
- gm.kingdom.rename
- gm.kingdom.set_ruler
- gm.kingdom.sync_vassal_banners
- gm.kingdom.trade_agreement
Settlement Commands
- gm.settlement.add_militia
- gm.settlement.fill_garrison
- gm.settlement.give_food
- gm.settlement.give_gold
- gm.settlement.rename
- gm.settlement.reset_names
- gm.settlement.set_culture
- gm.settlement.set_hearths
- gm.settlement.set_loyalty
- gm.settlement.set_prosperity
- gm.settlement.set_security
- gm.settlement.set_village_bound_settlement
- gm.settlement.set_village_trade_bound_settlement
- gm.settlement.spawn_wanderer
- gm.settlement.upgrade_buildings
Item Commands
- gm.item.add
- gm.item.equip
- gm.item.equip_slot
- gm.item.list_equipped
- gm.item.list_inventory
- gm.item.load_equipment
- gm.item.load_equipment_both
- gm.item.load_equipment_civilian
- gm.item.remove
- gm.item.remove_all
- gm.item.remove_equipped
- gm.item.remove_equipped_modifier
- gm.item.save_equipment
- gm.item.save_equipment_both
- gm.item.save_equipment_civilian
- gm.item.set_equipped_modifier
- gm.item.set_inventory_modifier
- gm.item.transfer
- gm.item.unequip
- gm.item.unequip_all
- gm.item.unequip_slot
Query Commands
- gm.query.character_objects
- gm.query.character_objects_any
- gm.query.character_objects_info
- gm.query.clan
- gm.query.clan_any
- gm.query.clan_info
- gm.query.culture
- gm.query.culture_info
- gm.query.hero
- gm.query.hero_any
- gm.query.hero_info
- gm.query.item
- gm.query.item_any
- gm.query.item_info
- gm.query.kingdom
- gm.query.kingdom_any
- gm.query.kingdom_info
- gm.query.modifier_info
- gm.query.modifiers
- gm.query.settlement
- gm.query.settlement_any
- gm.query.settlement_info
- gm.query.troop
- gm.query.troop_any
- gm.query.troop_info