Skip to content

API Item save_equipment_both

SolWayward edited this page Dec 22, 2025 · 2 revisions

save_equipment_both

Endpoint: gm.item.save_equipment_both

Syntax

gm.item.save_equipment_both <hero_query> <filename>

Parameters

Parameter Type Required Description
hero_query string Yes Hero identifier (StringId or partial name match)
filename string Yes Base name for the equipment files (without extension)

Examples

gm.item.save_equipment_both player complete_setup

Output:

Saved Player's battle equipment to Documents\Mount and Blade II Bannerlord\Configs\GameMaster\HeroSets\complete_setup.json
Saved Player's civilian equipment to Documents\Mount and Blade II Bannerlord\Configs\GameMaster\HeroSets\civilian\complete_setup.json
gm.item.save_equipment_both lord_1_1 lord_template

File Locations

Battle Equipment:

Documents\Mount and Blade II Bannerlord\Configs\GameMaster\HeroSets\{filename}.json

Civilian Equipment:

Documents\Mount and Blade II Bannerlord\Configs\GameMaster\HeroSets\civilian\{filename}.json

Notes

NOTE: Saves both battle and civilian equipment to separate JSON files with a single command.

NOTE: This is the most convenient way to backup a hero's complete equipment set.

TIP: Use with gm.item.load_equipment_both for complete equipment management.

Related Commands

Last Updated: 2025-12-16

Quick Links

🏠 Home | Quick Reference | Syntax Guide


Hero Commands
Clan Commands
Kingdom Commands
Settlement Commands
Item Commands
Troop Commands
Caravan Commands
Bandit Commands
Query Commands

Clone this wiki locally