-
Notifications
You must be signed in to change notification settings - Fork 0
API Kingdom rename
Endpoint: gm.kingdom.rename
gm.kingdom.rename <kingdom> <name>
| Parameter | Type | Required | Position | Description |
|---|---|---|---|---|
kingdom |
string | Yes | 0 | Kingdom to rename (StringId or partial name match) |
name |
string | Yes | 1 | The new name for the kingdom. Use SINGLE QUOTES for multi-word names |
Renames the specified kingdom to a new name. This command allows you to change the display name of any kingdom in the game. The name change is immediate and affects all references to the kingdom throughout the game, including diplomatic screens, kingdom lists, and map labels.
The command finds a kingdom matching the provided query (either by StringId or by name search) and updates its display name to the specified new name.
This command delegates to KingdomExtensions.SetStringName() for the actual rename operation.
gm.kingdom.rename sturgia 'Northern Empire'Output:
Kingdom renamed from 'Sturgia' to 'Northern Empire'
gm.kingdom.rename Vlandia 'Western Realm'Output:
Kingdom renamed from 'Kingdom of Vlandia' to 'Western Realm'
gm.kingdom.rename kingdom:southern_empire name:'United Empire'Output:
Kingdom renamed from 'Southern Empire' to 'United Empire'
gm.kingdom.rename battania CaledoniaOutput:
Kingdom renamed from 'Battania' to 'Caledonia'
gm.kingdom.rename northern_empire 'Empire of the North'Output:
Kingdom renamed from 'Northern Empire' to 'Empire of the North'
Finding Kingdoms: Use query commands to find kingdom StringIds:
# List all kingdoms
gm.query.kingdom
# Get detailed kingdom info
gm.query.kingdom_info sturgia
# Then rename using the ID
gm.kingdom.rename sturgia 'Frozen Kingdom'Multi-Word Names: Always use SINGLE QUOTES for names with spaces:
# Correct - using single quotes
gm.kingdom.rename vlandia 'Kingdom of the West'
gm.kingdom.rename aserai 'Desert Sultanate'
# Incorrect - double quotes don't work in TaleWorlds console
gm.kingdom.rename vlandia "Kingdom of the West" # This will failSingle-Word Names: No quotes needed for single-word names:
gm.kingdom.rename sturgia Nordland
gm.kingdom.rename khuzait MongoriaValid Kingdom StringIds: Common vanilla kingdom StringIds include:
sturgia # Kingdom of Sturgia
vlandia # Kingdom of Vlandia
battania # Kingdom of Battania
aserai # Aserai
khuzait # Khuzait Khanate
southern_empire # Southern Empire
northern_empire # Northern Empire
western_empire # Western EmpireRenaming Custom Kingdoms: Works with kingdoms created via gm.kingdom.create_kingdom and gm.kingdom.generate_kingdoms:
# Create a kingdom
gm.kingdom.create_kingdom pen 'Temp Name' 'House Stark' 3 vlandia
# Rename it later
gm.kingdom.rename 'Temp Name' 'Kingdom of Winterfell'No Matches: If no kingdom is found:
Error: No kingdom found matching '{query}'.
Solution: Verify the kingdom exists using gm.query.kingdom first.
Multiple Matches: If the query matches multiple kingdoms:
Error: Multiple kingdoms found matching '{query}'. Please be more specific.
Solution: Use the exact kingdom StringId or a more specific name.
Empty Name: If the new name is empty:
Error: New name cannot be empty.
Solution: Provide a valid name for the kingdom.
- API-Kingdom-Overview - All kingdom commands
- API-Kingdom-create_kingdom - Create new kingdom with custom name
- API-Kingdom-generate_kingdoms - Generate multiple kingdoms
- API-Kingdom-set_ruler - Change kingdom ruler
- gm.query.kingdom - Find kingdoms by name
- gm.query.kingdom_info - Get detailed kingdom information
Name Persistence: The name change is saved with your game save and will persist through save/load cycles.
Immediate Effect: The rename is applied immediately to all game references. Diplomatic screens, kingdom lists, map labels, and all other UI elements will reflect the new name.
No Gameplay Effect: Renaming a kingdom does not change its culture, diplomatic relations, ruler, member clans, or any other properties -- only the display name.
Custom Scenarios: This command is useful for:
- Creating themed playthroughs with specific kingdom names
- Renaming kingdoms after conquest to reflect your empire
- Fixing auto-generated names from kingdom generation commands
- Building custom geopolitical scenarios with meaningful names
Single Quotes Required: The TaleWorlds console system requires SINGLE QUOTES (not double quotes) for multi-word arguments. Double quotes will not work.
Named and Positional Arguments: Both named (kingdom:value) and positional arguments are supported. Named arguments use the format argName:value with no spaces around the colon.
Last Updated: 2/13/2026
🏠 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_owner
- gm.settlement.set_owner_clan
- 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