Cheat Console Commands

Use these console commands to test builds, speed up progression, or recover from edge cases.
They all live under the retinues namespace in the in-game cheat console.


General syntax

retinues.<command> [arguments...]

If you pass a wrong number/type of arguments, the command prints a short Usage help line.


Troop XP

  • Add XP to a troop
    retinues.troop_xp_add <troopId> [amount]
    

    Adds amount XP (default 1000) to the specified troop. Prints the troop name and amount added.

  • List active custom troops
    retinues.list_custom_troops
    

    Lists IDs, names, and current XP for all active custom troops in your game.

Use retinues.list_custom_troops to grab the correct <troopId> for retinues.troop_xp_add.


Item unlocks

  • Unlock a specific item
    retinues.unlock_item <itemId>
    

    Instantly unlocks the item so it can appear in the equipment editor (subject to your other rules).

  • Reset all unlocks
    retinues.reset_unlocks
    

    Clears every item unlock so you can retest the progression from scratch.


Item stocks

  • Set stock count for an item
    retinues.set_stock <itemId> <count>
    

    Directly sets the tracked stock for an item (useful if you’re playing with town-inventory restrictions or stock-sensitive rules).


Doctrines & feats

Browse, advance, or complete feats that gate certain doctrine bonuses.

  • List all doctrines and feats (with progress)
    retinues.feat_list
    

    Prints every doctrine, its feats, and each feat’s current/target progress.

  • Advance a feat by amount (default 1)
    retinues.feat_add <FeatNameOrType> [amount]
    

    Accepted identifiers typically include: full type name, short nested name (e.g. MAA_1000EliteKills), or a unique suffix.

  • Set a feat to an exact progress
    retinues.feat_set <FeatNameOrType> <amount>
    

    Useful for precise testing of unlock thresholds.

  • Mark a single feat complete
    retinues.feat_unlock <FeatNameOrType>
    

    Sets its progress to the target.

  • Mark all feats complete
    retinues.feat_unlock_all
    

    Completes every feat in one go.


Fixes

  • Fix party leaders
    retinues.fix_party_leaders
    

    Ensures that all parties which have lost their leader hero get a valid leader assigned again (including your main party and lord parties). Useful if your main party or another lord party ends up without a leader and starts behaving strangely on the world map.

  • Purge Bandit Militias of custom troops
    retinues.purge_bandit_militias
    

    For players using the Bandit Militias mod. Scans all Bandit Militias parties and rosters and removes Retinues custom troops from them, replacing them with safe vanilla equivalents.
    Use this if Bandit Militias ends up fielding Retinues troops and starts causing crashes or other issues.