EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

interacted

An actor interacted with a target that offers an interaction.

Signature

{ actor: ActorRef, definition: ContentId, kind: "interacted", player: (PlayerRef)?, target: ActorRef }

Fields

NameTypeMeaning
actorActorRefActing actor (human- or AI-controlled).
Length: 1…256; Pattern: ^[\s\S]+$
definitionContentIdDefinition the target instantiates (an NPC, an animal, a structure).
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
kind"interacted"Discriminant
playerPlayerRefPlayer controlling the actor; absent for AI-controlled actors.
Length: 1…256; Pattern: ^[\s\S]+$
targetActorRefActor or structure interacted with.
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "actor": "a1",
  "definition": "core:healer",
  "kind": "interacted",
  "player": "p1",
  "target": "a2"
}