CONTENT CONTRACT · VERSION 1
set_routine
Replace the daily routine of an NPC; its current order ends.
Signature
{ kind: "set_routine", routine: RoutineId, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
kind | "set_routine" | Discriminant |
routine | RoutineId | Routine with anchors on the NPC's map. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: routine |
target | ActorRef | Actor the effect applies to. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"kind": "set_routine",
"routine": "core:healer_day",
"target": "a2"
}