Skip to content

API Hero set_gold

SolWayward edited this page Dec 22, 2025 · 1 revision

Hero set_gold

Endpoint: gm.hero.set_gold

Syntax

gm.hero.set_gold <hero> <amount>

Parameters

Parameter Type Required Description
hero string Yes Hero identifier (StringId or partial name match)
amount integer Yes New gold amount

Example

gm.hero.set_gold lord_1_1 10000

Output:

{Hero Name}'s gold changed from {old_gold} to 10000.

Set hero gold to zero:

gm.hero.set_gold merchant_1 0

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