Skip to content

API Hero set_age

SolWayward edited this page Dec 22, 2025 · 1 revision

Hero set_age

Endpoint: gm.hero.set_age

Syntax

gm.hero.set_age <hero> <age>

Parameters

Parameter Type Required Description
hero string Yes Hero identifier (StringId or partial name match)
age float Yes New age value (range: 0-128)

Example

gm.hero.set_age lord_1_1 30

Output:

{Hero Name}'s age changed from {old_age} to 30.

Set hero age with decimal precision:

gm.hero.set_age wanderer_1 25.5

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