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
| Name | Type | Meaning |
|---|---|---|
kind | "set_home" | Discriminant |
structure | ActorRef | A 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]+$ |
target | ActorRef | Actor the effect applies to. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"kind": "set_home",
"structure": "actor/s12",
"target": "a1"
}