CONTENT CONTRACT · VERSION 1
BehaviorState
One state of a behavior graph.
Signature
{ action: BehaviorAction, id: Name, invulnerable: (boolean)?, music: (AudioCueId)?, pose: (Name)?, status: (StatusId)?, summon: (BehaviorSummon)?, transitions: {BehaviorTransition} }Fields
| Name | Type | Meaning |
|---|---|---|
action | BehaviorAction | What the actor does in this state. |
id | Name | Local state ID, unique in the graph. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
invulnerable | boolean | Blows do the actor no harm while in this state (they show as parried; a boss shut in its shell). Absent: false. |
music | AudioCueId | Fight music while the actor is in this state, in place of its boss mark's piece (a boss's later phase). Absent: its boss mark's. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: audio_cue |
pose | Name | Clip of its creature body plan the actor shows while in this state instead of its gait and rest (a crab dug into the sand); wind-ups, blows and a hit still show. Absent: the usual clips. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
status | StatusId | Status the actor bears while in this state: applied on entry and kept on, taken off when it leaves; a status a tool removed (`status.removed_by`) stays off for its regrow time. Absent: none. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: status |
summon | BehaviorSummon | Allies the actor calls when a transition takes it into this state: its squad is topped up to `count` living ones of that kind (entered again, it calls only the missing), arriving around it, fighting in its squad and belonging to its spawn group. Absent: none. |
transitions | {BehaviorTransition} | Transitions checked every tick while the actor fights, in order; at most one is taken. Without a foe the actor rests in the graph's initial state. Items: 0…16 |