Skip to content

API Hero kill

SolWayward edited this page Dec 22, 2025 · 1 revision

Hero kill

Endpoint: gm.hero.kill

Syntax

gm.hero.kill <hero> [show_death_log]

Parameters

Parameter Type Required Description
hero string Yes Hero identifier (StringId or partial name match)
show_death_log boolean No If true, displays the death log in-game (default: false)

Example

gm.hero.kill lord_1_1

Output:

{Hero Name} (ID: lord_1_1) has been killed.

Kill a hero and show death log:

gm.hero.kill lord_1_1 true

WARNING: This action is permanent and cannot be undone. The hero will be marked as dead and removed from active gameplay. Consider backing up your save before using this command.

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