EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

item_stored

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]+$

Validated example

{
  "actor": "a1",
  "count": 2,
  "definition": "core:chest_structure",
  "item": "core:wood",
  "kind": "item_stored",
  "player": "p1",
  "position": {
    "map": "m1",
    "x_mm": 1000,
    "y_mm": 0,
    "z_mm": 2000
  },
  "target": "s1"
}