-
Notifications
You must be signed in to change notification settings - Fork 0
API Hero create_lord
Endpoint: gm.hero.create_lord
gm.hero.create_lord <name> [cultures] [gender] [clan] [withParty] [settlement] [randomFactor] [level] [age]
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Display name for the new lord. Use SINGLE QUOTES for multi-word names |
cultures |
string | No | Culture filter(s). Use commas to separate multiple cultures (e.g., vlandia,battania). Can also use group keywords: main_cultures (default), bandit_cultures, all_cultures. Run gm.query.culture to see available cultures |
gender |
string | No | Gender filter: 'both'/'b' (default), 'male'/'m', or 'female'/'f' |
clan |
string | No | Clan identifier (StringId or partial name match). If not specified, lord goes to a random clan |
withParty |
bool | No | Whether to create a party for the lord. Defaults to true (only creates party if clan is below party limit) |
settlement |
string | No | Settlement for lord without party to reside in (only used if withParty is false). Settlement StringId or partial name match |
randomFactor |
float | No | Template randomization factor (0.0-1.0). Default is 0.5. Controls how much the template is randomized within its constraints (1 = more variety and still good looking, 0 = less variety, better looking) |
level |
integer | No | Target level for the lord (1-62). If not specified, a random level between 10-25 is assigned |
age |
integer | No | Age for the lord (minimum 18). If not specified, a random age between 18-30 is assigned |
This command supports named argument notation, allowing you to specify optional parameters in any order using the format argName:value (with a colon and no spaces).
Benefits:
- Specify optional parameters without providing all preceding parameters
- Arguments can be in any order when using named notation
- Mix positional and named arguments
Examples:
# Using named arguments to skip positional parameters
gm.hero.create_lord name:'Sir Percival' gender:female cultures:vlandia level:20 age:25
# Specify only the parameters you need
gm.hero.create_lord 'Lady Knight' gender:female clan:player_faction level:15
# Mix positional and named arguments
gm.hero.create_lord 'Lord Marcus' vlandia gender:male randomFactor:0.8 age:28Creates a single lord from random templates with good gear and decent stats. This command allows you to create a named lord with specific characteristics.
Each created lord receives:
- Custom Name: The name you specify
- Random Template: Selected from available lord templates matching culture and gender filters
- Level: 10-25 (randomly selected), or a specific level if provided
- Age: 18-30 (randomly selected), or a specific age if provided
- Equipment: High-tier armor and weapons matching their culture
- Occupation: Lord
- Status: Active and ready for duty
- Randomized Appearance: Face, hair, and body features randomized within template constraints
If no clan is specified, the lord is assigned to a random clan. If a specific clan is provided, the lord joins that clan.
Party Creation: The lord will only be made a party leader if the clan is not at their maximum allowed parties for their tier. Otherwise, the lord is created as a regular family member. You can create a party for them later using gm.hero.create_party. Set withParty:false to skip party creation entirely.
gm.hero.create_lord 'Sir Percival'Output:
Created lord 'Sir Percival' (ID: {lord_id})
[Detailed formatted output with hero information]
# Male Vlandian lord
gm.hero.create_lord Ragnar vlandia male
# Female Empire lord for player faction
gm.hero.create_lord 'Lady Elara' empire female player_faction
# Aserai male lord with specific randomization
gm.hero.create_lord Khalid aserai male 'dey Meroc' true null 0.8# Create a lord at level 30
gm.hero.create_lord 'Sir Gallant' vlandia male level:30
# Create a lord at age 45
gm.hero.create_lord 'Elder Marcus' empire male age:45
# Create a lord at both specific level and age
gm.hero.create_lord 'Lady Sophia' battania female level:20 age:25
# Positional usage with level and age at the end
gm.hero.create_lord Khalid aserai male 'dey Meroc' true null 0.8 20 25# Always use SINGLE QUOTES for multi-word names
gm.hero.create_lord 'Sir John Smith'
gm.hero.create_lord 'Lady Catherine of Vlandia' vlandia female
gm.hero.create_lord 'Lord Marshal' empire male player_faction# Vlandian lord
gm.hero.create_lord 'Count Roland' vlandia male
# Battanian female
gm.hero.create_lord 'Liath' battania female
# Aserai male
gm.hero.create_lord 'Emir Hassan' aserai male# Create lord without a party, placed at a settlement
gm.hero.create_lord 'Lady Isolde' vlandia female withParty:false settlement:pen_cannoc
# Create lord with party (default)
gm.hero.create_lord 'Sir Aldric' empire male clan:player_faction withParty:true# Default randomization (0.5)
gm.hero.create_lord 'Lord Marcus' empire
# Less randomization for template-like appearance (better looking)
gm.hero.create_lord 'Lady Sophia' vlandia female player_faction true null 0.3
# More randomization for unique appearance (more variety)
gm.hero.create_lord 'Khan Temujin' khuzait male randomFactor:1.0# Specify everything using named arguments
gm.hero.create_lord name:'Lady Elara' cultures:empire gender:female clan:player_faction withParty:false settlement:pen_cannoc randomFactor:0.8 level:15 age:22
# Specify only what you need, skip everything else
gm.hero.create_lord name:'Sir Reginald' level:25 age:30 clan:player_factionSmart Argument Parsing: The command intelligently parses arguments:
# Gender keyword detected first, cultures defaults to main_cultures
gm.hero.create_lord 'Sir John' male
# Cultures specified, then gender
gm.hero.create_lord 'Lady Maria' vlandia female
# Cultures, gender, then clan
gm.hero.create_lord 'Lord Marcus' empire male player_faction
# Full specification with all optional parameters
gm.hero.create_lord 'Khan Boris' khuzait male player_faction true null 0.8 20 25Culture Selection:
# Use predefined groups
gm.hero.create_lord 'Hero Name' main_cultures
gm.hero.create_lord 'Bandit Lord' bandit_cultures
gm.hero.create_lord 'Any Lord' all_cultures
# Specify individual culture
gm.hero.create_lord 'Vlandian Lord' vlandia
gm.hero.create_lord 'Empire Lady' empire femaleGender Filtering:
# Both genders (default - random selection)
gm.hero.create_lord 'Hero Name' main_cultures both
gm.hero.create_lord 'Hero Name' main_cultures b
# Male only
gm.hero.create_lord 'Sir Name' main_cultures male
gm.hero.create_lord 'Sir Name' main_cultures m
# Female only
gm.hero.create_lord 'Lady Name' main_cultures female
gm.hero.create_lord 'Lady Name' main_cultures fLevel and Age Control:
# Set specific level (1-62)
gm.hero.create_lord 'Veteran Lord' vlandia male level:40
# Set specific age (18+)
gm.hero.create_lord 'Young Knight' empire male age:18
# Set both level and age
gm.hero.create_lord 'Seasoned General' sturgia male level:50 age:55
# Default values when not specified:
# Level: Random between 10-25
# Age: Random between 18-30Naming Conventions: Best practices for naming:
# Single-word names (no quotes needed)
gm.hero.create_lord Marcus empire male
gm.hero.create_lord Ragnar vlandia male
# Multi-word names (SINGLE QUOTES required)
gm.hero.create_lord 'Sir Marcus the Bold' empire male
gm.hero.create_lord 'Lady Catherine of Battania' battania femaleRandom Factor Guide:
-
0.0-0.3: Less variety, stays close to template (better looking, more uniform) -
0.4-0.6: Balanced variety (default 0.5) -
0.7-1.0: Maximum variety, unique appearances (still good looking, more diverse)
Clan Assignment:
# Player clan
gm.hero.create_lord 'My Lord' vlandia male player_faction
# Specific NPC clan by name
gm.hero.create_lord 'New Lord' aserai male 'dey Meroc'
# Random clan (omit clan parameter)
gm.hero.create_lord 'Random Lord' vlandia maleQuery Available Cultures: Use culture query command to see all available options:
gm.query.culture # List all cultures
gm.query.culture main # List main cultures only
gm.query.culture bandit # List bandit cultures onlyRenaming After Creation: Use the rename command if you want to change the name later:
gm.hero.create_lord 'Initial Name' vlandia male
gm.hero.rename 'Initial Name' 'New Name'Use gm.hero.create_lord when you need:
- A single lord with custom name
- More control over naming
- Similar culture/gender filtering options
- Specific randomization control
- Control over party creation and settlement placement
Use gm.hero.generate_lords when you want:
- Multiple lords quickly
- Lords with random appropriate names
- Bulk population of clans
- Same culture/gender filtering capabilities
- API-Hero-Overview - All hero commands
- API-Hero-generate_lords - Generate multiple lords with random names
- API-Hero-create_companions - Create companions for a party
- API-Hero-rename - Rename existing heroes
- gm.hero.set_age - Adjust lord age
- gm.hero.set_clan - Change lord's clan
- gm.hero.add_gold - Give gold to lord
- gm.item.add - Add equipment to lord
- gm.item.equip - Equip items on lord
- gm.query.hero - Find heroes by name
- gm.query.culture - Query available cultures
Custom Naming: Unlike gm.hero.generate_lords, this command allows you to specify exact names for your lords, making it ideal for role-playing or creating specific characters.
Random Appearance: Each lord gets a randomized appearance (face features, hair style) based on their template's race and gender, controlled by the randomFactor parameter.
Template Selection: The command randomly selects from available lord templates matching the specified culture and gender filters. The template determines the lord's base culture and appearance characteristics.
Culture Filtering: The culture filter determines which templates can be selected, ensuring lords have appropriate appearance and equipment for their culture.
Single Quotes Required: The TaleWorlds console system requires SINGLE QUOTES (not double quotes) for multi-word arguments. Double quotes will not work.
Party Assignment Logic: Lords are only made party leaders if their clan is below the maximum party count for their tier. Otherwise, they're created as clan members without parties. Use gm.hero.create_party to give them a party later. Use withParty:false to skip party creation entirely, and optionally specify a settlement for the lord to reside in.
Level Range: When specifying a level, valid values are 1-62. If not specified, a random level between 10-25 is assigned. Higher levels result in better skills and attributes.
Age Range: When specifying an age, the minimum is 18. If not specified, a random age between 18-30 is assigned. Age affects various game mechanics including death probability and attribute decay at very high ages.
Last Updated: 2026-02-16
🏠 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