-
Notifications
You must be signed in to change notification settings - Fork 0
API Hero impregnate
Endpoint: gm.hero.impregnate
gm.hero.impregnate <mother> [father] [allowAnyCulture:false]
| Parameter | Type | Required | Position | Description |
|---|---|---|---|---|
mother / hero
|
string | Yes | 0 | The female hero to impregnate (name, StringId, or player) |
father |
string | No | 1 | The male hero to be the father (name, StringId, or player). If not specified: uses mother's spouse, or a random nearby male hero |
allowAnyCulture |
bool | No | 2 | Set to true to allow non-main-culture parents. Default: false
|
Makes a female hero pregnant. The command validates that the specified mother is female and not already pregnant, and that the father (if specified) is male. By default, the command enforces culture checks to ensure the parents belong to main cultures. Setting allowAnyCulture to true bypasses this restriction.
If no father is specified, the command will attempt to use the mother's spouse as the father. If the mother has no spouse, a random nearby male hero will be selected instead.
The pregnancy follows the game's native pregnancy system and will progress naturally over time, eventually resulting in the birth of a child.
This command delegates to HeroManager.Impregnate() for the actual pregnancy logic.
gm.hero.impregnate IraOutput:
Ira is now pregnant. Father: {spouse or random nearby hero}
gm.hero.impregnate lord_1_3 lord_4_1Output:
Ira is now pregnant. Father: Derthert
gm.hero.impregnate mother:lord_1_3 father:lord_4_1Output:
Ira is now pregnant. Father: Derthert
gm.hero.impregnate 'Ira of the Empire' DerthertOutput:
Ira is now pregnant. Father: Derthert
gm.hero.impregnate mother:lord_1_3 father:lord_4_1 allowAnyCulture:trueOutput:
Ira is now pregnant. Father: Derthert
gm.hero.impregnate lord_1_3 lord_4_1 trueOutput:
Ira is now pregnant. Father: Derthert
gm.hero.impregnate IraOutput:
Ira is now pregnant. Father: {Ira's spouse}
Finding Female Heroes: Use query commands to find female heroes:
# Find female heroes by partial name
gm.query.hero Ira
gm.query.hero_info lord_1_3
# Then impregnate using the ID
gm.hero.impregnate lord_1_3Specifying the Father: The father parameter is optional. If omitted, the system will:
- First try to use the mother's spouse as the father
- If no spouse, select a random nearby male hero
# Let the system choose the father
gm.hero.impregnate Ira
# Specify a particular father
gm.hero.impregnate Ira DerthertCross-Culture Pregnancies: By default, both parents must belong to main cultures. To bypass this:
gm.hero.impregnate lord_1_3 lord_4_1 allowAnyCulture:trueUsing Player as Parent:
# If player is female
gm.hero.impregnate player Derthert
# If player is male, specify as father
gm.hero.impregnate Ira playerHero Not Found: If the mother or father query matches no heroes:
Error: No hero found matching '{query}'.
Solution: Verify the hero exists using gm.query.hero first.
Multiple Matches: If the query matches multiple heroes:
Error: Multiple heroes found matching '{query}'. Please be more specific.
Solution: Use the exact hero StringId or a more specific name.
Mother is Male: If the specified mother is a male hero:
Error: Mother must be a female hero.
Solution: Ensure you are targeting a female hero as the mother.
Already Pregnant: If the mother is already pregnant:
Error: Hero is already pregnant.
Solution: Wait for the current pregnancy to complete before attempting again.
Father is Female: If the specified father is a female hero:
Error: Father must be a male hero.
Solution: Ensure the father parameter references a male hero.
Culture Restriction: If parents are not from main cultures and allowAnyCulture is false:
Error: Culture check failed. Use allowAnyCulture:true to bypass.
Solution: Add allowAnyCulture:true to bypass culture restrictions.
- API-Hero-Overview - All hero commands
- API-Hero-marry - Marry two heroes
- API-Hero-divorce - Divorce hero from spouse
- API-Hero-set_relation - Set relationship between heroes
- API-Hero-set_age - Set hero age (affects pregnancy eligibility)
- gm.query.hero - Find heroes by name
- gm.query.hero_info - Get detailed hero information
Pregnancy Progression: The pregnancy follows the game's native pregnancy system. After impregnation, the pregnancy will progress naturally over in-game time and eventually result in the birth of a child.
Father Selection Priority: When no father is specified:
- The mother's spouse is used if available
- Otherwise, a random nearby male hero is selected
Culture Restrictions: By default, the command enforces that both parents belong to main cultures. This prevents unintended pregnancies with bandit or minor faction characters. Use allowAnyCulture:true to override this behavior when needed.
Child Inheritance: The child born from the pregnancy will inherit traits and culture based on the game's native child generation system, which considers both parents.
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 (mother: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