EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

set_home

Make a built house or tent the home of an NPC (absent: none): the NPC rests in front of its door and sleeps in its beds; its routine keeps the day. A package with world rights may house any NPC, others only the event's or the owner's.

Signature

{ kind: "set_home", structure: (ActorRef)?, target: ActorRef }

Fields

NameTypeMeaning
kind"set_home"Discriminant
structureActorRefA finished structure with a room (`actor/s<id>` or a map building); absent: the NPC has no home and rests at the first place of its day.
Length: 1…256; Pattern: ^[\s\S]+$
targetActorRefActor the effect applies to.
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "kind": "set_home",
  "structure": "actor/s12",
  "target": "a1"
}