Skip to content

API Kingdom declare_alliance

SolWayward edited this page Dec 23, 2025 · 1 revision

gm.kingdom.declare_alliance

Endpoint: gm.kingdom.declare_alliance

Syntax

gm.kingdom.declare_alliance <kingdom1> <kingdom2>

Parameters

Parameter Type Required Description
kingdom1 string Yes First kingdom identifier (StringId or partial name match)
kingdom2 string Yes Second kingdom identifier (StringId or partial name match)

Description

Declares an alliance between two kingdoms, establishing them as allied factions. Allied kingdoms support each other in wars and cannot declare war on each other while the alliance is active.

NOTE: A kingdom cannot form an alliance with itself. If the kingdoms are already allied, the command will return an error. Alliances affect diplomatic relations, military cooperation, and enable allied kingdom features.

Examples

gm.kingdom.declare_alliance empire battania

Output:

Alliance formed between Empire and Battania.

Using partial names:

gm.kingdom.declare_alliance vland aser

Related Commands

Last Updated: 2025-12-23

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