EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

sign_named

A player named a sign (a signpost or a building) within reach.

Signature

{ actor: ActorRef, definition: StructureId, kind: "sign_named", name: SignName, player: PlayerRef, position: Position, sign: ActorRef }

Fields

NameTypeMeaning
actorActorRefThe player's body.
Length: 1…256; Pattern: ^[\s\S]+$
definitionStructureIdStructure definition of the sign.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure
kind"sign_named"Discriminant
nameSignNameIts new name.
Length: 1…24; Pattern: ^[\p{L}\p{N}\p{P}](?:[\p{L}\p{N}\p{P} ]{0,22}[\p{L}\p{N}\p{P}])?$
playerPlayerRefPlayer who named it.
Length: 1…256; Pattern: ^[\s\S]+$
positionPositionSign location at the committed naming action.
signActorRefThe sign: a signpost or a building (`actor/s<id>`).
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "actor": "a1",
  "definition": "core:signpost_structure",
  "kind": "sign_named",
  "name": "Larder",
  "player": "p1",
  "position": {
    "map": "map/W/0",
    "x_mm": 1000,
    "y_mm": 0,
    "z_mm": 0
  },
  "sign": "actor/s12"
}