EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

npc_moved_in

A resident moved into a different home.

Signature

{ kind: "npc_moved_in", npc: NpcId, player: (PlayerRef)?, position: Position }

Fields

NameTypeMeaning
kind"npc_moved_in"Discriminant
npcNpcIdResident identity resolved when the move committed.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: npc
playerPlayerRefPlayer responsible for the committed assignment, if any.
Length: 1…256; Pattern: ^[\s\S]+$
positionPositionHome location.

Validated example

{
  "kind": "npc_moved_in",
  "npc": "core:juana",
  "player": "p1",
  "position": {
    "map": "m1",
    "x_mm": 0,
    "y_mm": 0,
    "z_mm": 0
  }
}