-
Notifications
You must be signed in to change notification settings - Fork 0
API Troop give_xp
Endpoint: gm.troops.give_xp
gm.troops.give_xp <partyLeader> <xp>
| Parameter | Type | Required | Description |
|---|---|---|---|
partyLeader |
string | Yes | Query to find the party leader hero (e.g., "player", "raganvad") |
xp |
integer | Yes | Amount of experience points to add to all troops |
- Hero must be a party leader
- Hero must have a party with troops
- Experience value must be positive
Adds the specified amount of experience points to all troops in the hero's party. This allows rapid troop progression without waiting for combat experience. Troops will automatically level up and become eligible for upgrades as they gain sufficient experience.
The experience is distributed equally to every troop in the party, making this an efficient way to prepare armies for upcoming battles or to quickly level up newly recruited troops.
Example 1: Give experience to player's troops
gm.troops.give_xp player 1000Output:
Added 1000 XP to all troops in Player's party.
Party: Player's Army
Total troops affected: 85
Example 2: Rapidly level companion troops
gm.troops.give_xp companion_name 5000Output:
Added 5000 XP to all troops in Companion Name's party.
Party: Companion Name's Party
Total troops affected: 30
Example 3: Prepare lord's army for war
gm.troops.give_xp raganvad 2500Output:
Added 2500 XP to all troops in Raganvad's party.
Party: Raganvad's Army
Total troops affected: 120
Example 4: Moderate experience boost
gm.troops.give_xp derthert 500Output:
Added 500 XP to all troops in Derthert's party.
Party: Derthert's Army
Total troops affected: 95
Example 5: Massive experience injection
gm.troops.give_xp lord_1_1 10000Output:
Added 10000 XP to all troops in Lord's party.
Party: Lord's Army
Total troops affected: 75
NOTE: Use gm.query.hero to find exact hero IDs if needed.
NOTE: Troops must still meet upgrade requirements (available upgrade path, sufficient XP) to actually upgrade.
NOTE: Experience is added to ALL troops in the party simultaneously.
TIP: Use moderate XP amounts (500-2000) for realistic progression, or large amounts (5000+) for immediate battle readiness.
TIP: Combine with gm.troops.upgrade_troops after giving XP to immediately upgrade troops that have gained sufficient experience.
TIP: Useful for testing army compositions at various experience levels without prolonged combat grinding.
WARNING: This command only works for party leaders, not party members.
WARNING: Extremely high XP values may cause troops to hit their maximum tier immediately, which could skip intended progression.
Quickly prepare armies for important battles:
gm.troops.give_xp player 2000
gm.troops.upgrade_troops player 6Speed up training for newly recruited troops:
gm.troops.give_hero_troops player imperial_recruit 50
gm.troops.give_xp player 1500Strengthen allied lords before military campaigns:
gm.troops.give_xp raganvad 3000
gm.troops.give_xp caladog 3000
gm.troops.give_xp lucon 3000Different troop tiers require different amounts of XP to level up:
- Tier 1 to 2: ~100-300 XP
- Tier 2 to 3: ~300-600 XP
- Tier 3 to 4: ~600-1000 XP
- Tier 4 to 5: ~1000-1500 XP
- Tier 5 to 6: ~1500-2500 XP
- Tier 6 to 7: ~2500-4000 XP
Note: Exact values vary by troop type and upgrade tree.
-
gm.troops.upgrade_troops- Upgrade all troops to specified tier -
gm.troops.give_hero_troops- Add specific troops to party -
gm.query.troop- Search for troop types -
gm.query.hero- Search for heroes
Last Updated: 2025-12-27 API Version: 1.3.13.1
🏠 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