EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

actor_spawned

A new actor entered the world.

Signature

{ actor: ActorRef, cause: SpawnCause, definition: ActorDefinitionId, kind: "actor_spawned" }

Fields

NameTypeMeaning
actorActorRefActing actor (human- or AI-controlled).
Length: 1…256; Pattern: ^[\s\S]+$
causeSpawnCauseWhy the actor was spawned.
definitionActorDefinitionIdDefinition the actor instantiates, resolved when the event was created.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character|npc|enemy|animal|structure
kind"actor_spawned"Discriminant

Validated example

{
  "actor": "b1",
  "cause": {
    "handler": {
      "binding": "core:hill_golem_lair_entered",
      "kind": "binding"
    },
    "invocation_id": "i1",
    "kind": "script",
    "spawn_key": "golem"
  },
  "definition": "core:hill_golem",
  "kind": "actor_spawned"
}