CONTENT CONTRACT · VERSION 1
ItemUsedEvent
The host validated an item intent and selected exactly its declared use handler.
Signature
{ actor: ActorRef, ends: ({StatusId})?, item: ItemId, kind: "item_used", player: (PlayerRef)?, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled) that used the item from its own inventory. Length: 1…256; Pattern: ^[\s\S]+$ |
ends | {StatusId} | Statuses of the target that end when it eats the item (`status.ends_on_eating` and the item's tags); a committed use ends them. A handler may accept a use for them alone (food at full stamina still steadies the shaken). Items: 0…64; Unique entries |
item | ItemId | Inventory item definition to count, consume or match. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
kind | "item_used" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
target | ActorRef | Actor instance selected by the item-use target contract. Length: 1…256; Pattern: ^[\s\S]+$ |