CONTENT CONTRACT · VERSION 1
behavior_state_entered
An AI actor's behavior graph took a transition into a state while it fought (a boss's next phase: a `health_below` transition). Not on a graph's assignment, and not when the actor rests back in the graph's initial state without a foe.
Signature
{ actor: ActorRef, behavior: BehaviorId, definition: ActorDefinitionId, kind: "behavior_state_entered", state: Name }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Actor whose graph moved on. Length: 1…256; Pattern: ^[\s\S]+$ |
behavior | BehaviorId | Behavior graph it runs. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: behavior |
definition | ActorDefinitionId | Definition the actor instantiates. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character|npc|enemy|animal|structure |
kind | "behavior_state_entered" | Discriminant |
state | Name | State it entered (local ID in the graph). Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
Validated example
{
"actor": "b1",
"behavior": "core:moss_court_mother_rooted",
"definition": "core:moss_court_mother_boss",
"kind": "behavior_state_entered",
"state": "calling"
}