EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

set_faction

Change the faction of a permitted AI actor to a faction declared by the active ruleset.

Signature

{ faction: ContentId, kind: "set_faction", target: ActorRef }

Fields

NameTypeMeaning
factionContentIdFaction declared by the active ruleset.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
kind"set_faction"Discriminant
targetActorRefPermitted NPC, enemy or animal whose allegiance changes.
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "faction": "core:village",
  "kind": "set_faction",
  "target": "a2"
}