EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

ItemStoredEvent

An actor put items into a storage structure (a chest, the storehouse); taking them out raises no event.

Signature

{ actor: ActorRef, count: PositiveCount, definition: StructureId, item: ItemId, kind: "item_stored", player: (PlayerRef)?, position: Position, target: ActorRef }

Fields

NameTypeMeaning
actorActorRefActing actor (human- or AI-controlled).
Length: 1…256; Pattern: ^[\s\S]+$
countPositiveCountUnits stored.
Range: 1…2147483647; Unit: count
definitionStructureIdStructure definition of the storage.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure
itemItemIdStored item.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item
kind"item_stored"Discriminant
playerPlayerRefPlayer controlling the actor; absent for AI-controlled actors.
Length: 1…256; Pattern: ^[\s\S]+$
positionPositionWhere the storage stands.
targetActorRefStorage structure the items went into.
Length: 1…256; Pattern: ^[\s\S]+$