EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

cutscene

A cutscene for one player or every online player, with declarative staging.

Signature

{ audience: (CutsceneAudience)?, bystanders: (CutsceneBystanders)?, cast: {CastMember}, haze: (SceneHaze)?, id: ContentId, kind: "cutscene", name: TextKey, near_mm: (PositiveDistance)?, places: {ScenePlace}, skip: CutsceneSkip, staging: {SceneStep}, stand: ({AnchorRef})? }

Fields

NameTypeMeaning
audienceCutsceneAudienceWho watches it; absent: the named player only. Watchers are protected from damage and ignored by enemies.
bystandersCutsceneBystandersWhich live figures outside the cast its watchers still see while a cast is staged; absent: `hidden`.
cast{CastMember}NPCs that must be present and the player slots, by unique role.
Items: 0…16; Unique entries
hazeSceneHazeCamera-relative distance haze for this view; absent: normal gameplay fog. Blends with the camera on entry and return.
idContentIdPackage-qualified identity; unique within its declaring namespace.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
kind"cutscene"Discriminant
nameTextKeyLocalization key for the displayed name.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
near_mmPositiveDistanceRadius of a `near` audience around the named player; absent: 30 m.
Range: 1…2147483647; Unit: mm
places{ScenePlace}Places its staging uses.
Items: 0…64; Unique entries
skipCutsceneSkipWhether the player may skip it.
staging{SceneStep}The complete staging; its last finishing step determines the duration.
Items: 1…256
stand{AnchorRef}Anchors of the world map its watchers are set to when it starts, in turn (outdoors, downed ones back on their feet); absent: they stay where they are.
Items: 1…8

Validated example

{
  "audience": "all",
  "cast": [
    {
      "at": "over_me",
      "npc": "core:sonja",
      "role": "sonja"
    },
    {
      "at": "nico_start",
      "npc": "core:nico",
      "role": "nico"
    },
    {
      "at": "juana_start",
      "npc": "core:juana",
      "role": "juana"
    },
    {
      "at": "david_start",
      "npc": "core:david",
      "role": "david"
    },
    {
      "at": "me_hidden",
      "role": "me"
    },
    {
      "at": "castaway_2_hidden",
      "role": "castaway_2",
      "slot": 2
    },
    {
      "at": "castaway_3_hidden",
      "role": "castaway_3",
      "slot": 3
    },
    {
      "at": "castaway_4_hidden",
      "role": "castaway_4",
      "slot": 4
    },
    {
      "at": "castaway_5_hidden",
      "role": "castaway_5",
      "slot": 5
    },
    {
      "at": "castaway_6_hidden",
      "role": "castaway_6",
      "slot": 6
    },
    {
      "at": "castaway_7_hidden",
      "role": "castaway_7",
      "slot": 7
    },
    {
      "at": "castaway_8_hidden",
      "role": "castaway_8",
      "slot": 8
    }
  ],
  "haze": {
    "depth_mm": 27000,
    "start_mm": 18000
  },
  "id": "core:c00_intro",
  "kind": "cutscene",
  "name": "core:scene_c00_intro_name",
  "places": [
    {
      "exact": true,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "pov_sit",
      "offset_mm": [
        0,
        50,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": true,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "pov_up",
      "offset_mm": [
        0,
        600,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": true,
      "from": {
        "anchor": "core:valley/open_sea",
        "kind": "anchor"
      },
      "id": "sea",
      "offset_mm": [
        0,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/shore_sonja",
        "kind": "anchor"
      },
      "id": "over_me",
      "offset_mm": [
        0,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "nico_start",
      "offset_mm": [
        -6000,
        0,
        4000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "juana_start",
      "offset_mm": [
        -8000,
        0,
        5900
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "david_start",
      "offset_mm": [
        -10000,
        0,
        3600
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/shore_nico",
        "kind": "anchor"
      },
      "id": "nico_near",
      "offset_mm": [
        0,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/shore_juana",
        "kind": "anchor"
      },
      "id": "juana_near",
      "offset_mm": [
        0,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/shore_david",
        "kind": "anchor"
      },
      "id": "david_near",
      "offset_mm": [
        0,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": true,
      "from": {
        "anchor": "core:valley/path_start",
        "kind": "anchor"
      },
      "id": "path",
      "offset_mm": [
        0,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": true,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "path_view",
      "offset_mm": [
        0,
        15000,
        -2000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "me_hidden",
      "offset_mm": [
        -1200,
        0,
        -900
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "player"
      },
      "id": "me_spot",
      "offset_mm": [
        0,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "castaway_2_spot",
      "offset_mm": [
        1200,
        0,
        -400
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "castaway_3_spot",
      "offset_mm": [
        -900,
        0,
        -1100
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "castaway_4_spot",
      "offset_mm": [
        400,
        0,
        -1700
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "castaway_5_spot",
      "offset_mm": [
        -1800,
        0,
        -100
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "castaway_6_spot",
      "offset_mm": [
        1800,
        0,
        800
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "castaway_7_spot",
      "offset_mm": [
        -400,
        0,
        -2500
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "castaway_8_spot",
      "offset_mm": [
        -2400,
        0,
        -1400
      ],
      "turn_mdeg": 0
    },
    {
      "exact": true,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "walk_eye",
      "offset_mm": [
        -3500,
        1700,
        -3000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": true,
      "from": {
        "anchor": "core:valley/arrival",
        "kind": "anchor"
      },
      "id": "walk_look",
      "offset_mm": [
        -5500,
        -400,
        4000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "place",
        "place": "me_hidden"
      },
      "id": "castaway_2_hidden",
      "offset_mm": [
        -1000,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "place",
        "place": "me_hidden"
      },
      "id": "castaway_3_hidden",
      "offset_mm": [
        0,
        0,
        -1000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "place",
        "place": "me_hidden"
      },
      "id": "castaway_4_hidden",
      "offset_mm": [
        -1000,
        0,
        -1000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "place",
        "place": "me_hidden"
      },
      "id": "castaway_5_hidden",
      "offset_mm": [
        -2000,
        0,
        0
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "place",
        "place": "me_hidden"
      },
      "id": "castaway_6_hidden",
      "offset_mm": [
        -2000,
        0,
        -1000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "place",
        "place": "me_hidden"
      },
      "id": "castaway_7_hidden",
      "offset_mm": [
        -1000,
        0,
        -2000
      ],
      "turn_mdeg": 0
    },
    {
      "exact": false,
      "from": {
        "kind": "place",
        "place": "me_hidden"
      },
      "id": "castaway_8_hidden",
      "offset_mm": [
        -2000,
        0,
        -2000
      ],
      "turn_mdeg": 0
    }
  ],
  "skip": "allowed",
  "staging": [
    {
      "actor": "sonja",
      "at": "over_me",
      "do": "actor_place"
    },
    {
      "actor": "nico",
      "at": "nico_start",
      "do": "actor_place"
    },
    {
      "actor": "juana",
      "at": "juana_start",
      "do": "actor_place"
    },
    {
      "actor": "david",
      "at": "david_start",
      "do": "actor_place"
    },
    {
      "actor": "sonja",
      "do": "actor_face",
      "ms": 0,
      "target": "pov_sit"
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 0,
      "shot": {
        "eye": "pov_sit",
        "kind": "place",
        "look": "sonja"
      },
      "transition": "cut"
    },
    {
      "do": "fade",
      "ms": 0,
      "to_permille": 1000
    },
    {
      "cue": "core:sound_surf",
      "do": "sound"
    },
    {
      "do": "wait",
      "ms": 1500
    },
    {
      "cue": "core:sound_gulls",
      "do": "sound"
    },
    {
      "do": "fade",
      "ms": 3500,
      "to_permille": 0
    },
    {
      "do": "wait",
      "ms": 600
    },
    {
      "actor": "sonja",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "happy",
      "text": "core:c00_sonja_1",
      "text_mp": "core:c00_sonja_1_mp"
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 3000,
      "shot": {
        "eye": "pov_up",
        "kind": "place",
        "look": "sea"
      },
      "transition": "pan"
    },
    {
      "delivery": "normal",
      "do": "player_say",
      "emotion": "neutral",
      "text": "core:c00_player_1"
    },
    {
      "actor": "sonja",
      "do": "actor_face",
      "ms": 400,
      "target": "pov_up"
    },
    {
      "actor": "me",
      "at": "me_spot",
      "do": "actor_place"
    },
    {
      "actor": "me",
      "do": "actor_face",
      "ms": 0,
      "target": "sonja"
    },
    {
      "actor": "castaway_2",
      "at": "castaway_2_spot",
      "do": "actor_place",
      "face": "sonja"
    },
    {
      "actor": "castaway_3",
      "at": "castaway_3_spot",
      "do": "actor_place",
      "face": "sonja"
    },
    {
      "actor": "castaway_4",
      "at": "castaway_4_spot",
      "do": "actor_place",
      "face": "sonja"
    },
    {
      "actor": "castaway_5",
      "at": "castaway_5_spot",
      "do": "actor_place",
      "face": "sonja"
    },
    {
      "actor": "castaway_6",
      "at": "castaway_6_spot",
      "do": "actor_place",
      "face": "sonja"
    },
    {
      "actor": "castaway_7",
      "at": "castaway_7_spot",
      "do": "actor_place",
      "face": "sonja"
    },
    {
      "actor": "castaway_8",
      "at": "castaway_8_spot",
      "do": "actor_place",
      "face": "sonja"
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 0,
      "shot": {
        "actors": [
          "sonja"
        ],
        "framing": "front",
        "kind": "frame",
        "left": false,
        "size_mm": 2000
      },
      "transition": "cut"
    },
    {
      "actor": "sonja",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "neutral",
      "gesture": "talk",
      "text": "core:c00_sonja_3"
    },
    {
      "do": "parallel",
      "steps": [
        {
          "actor": "nico",
          "direct": false,
          "do": "actor_walk_to",
          "speed_mm_per_s": 1600,
          "stop_short_mm": 0,
          "to": "nico_near"
        },
        {
          "actor": "juana",
          "direct": false,
          "do": "actor_walk_to",
          "speed_mm_per_s": 1300,
          "stop_short_mm": 0,
          "to": "juana_near"
        },
        {
          "actor": "david",
          "direct": false,
          "do": "actor_walk_to",
          "speed_mm_per_s": 1300,
          "stop_short_mm": 0,
          "to": "david_near"
        },
        {
          "do": "sequence",
          "steps": [
            {
              "do": "camera",
              "easing": "ease_in_out",
              "ms": 0,
              "shot": {
                "eye": "walk_eye",
                "kind": "place",
                "look": "walk_look"
              },
              "transition": "cut"
            },
            {
              "do": "wait",
              "ms": 3000
            },
            {
              "actor": "me",
              "do": "actor_face",
              "ms": 0,
              "target": "nico"
            },
            {
              "do": "camera",
              "easing": "ease_in_out",
              "ms": 0,
              "shot": {
                "actors": [
                  "me",
                  "nico"
                ],
                "framing": "over_shoulder",
                "kind": "frame",
                "left": false,
                "size_mm": 2000
              },
              "transition": "cut"
            },
            {
              "actor": "nico",
              "delivery": "normal",
              "do": "actor_say",
              "emotion": "happy",
              "text": "core:c00_nico_1"
            }
          ]
        }
      ]
    },
    {
      "actor": "nico",
      "do": "actor_emotion",
      "emotion": "neutral"
    },
    {
      "do": "parallel",
      "steps": [
        {
          "actor": "nico",
          "do": "actor_face",
          "ms": 0,
          "target": "pov_up"
        },
        {
          "actor": "david",
          "do": "actor_face",
          "ms": 0,
          "target": "pov_up"
        },
        {
          "actor": "juana",
          "do": "actor_face",
          "ms": 400,
          "target": "sonja"
        },
        {
          "actor": "me",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "castaway_2",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "castaway_3",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "castaway_4",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "castaway_5",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "castaway_6",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "castaway_7",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "castaway_8",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        }
      ]
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 0,
      "shot": {
        "actors": [
          "juana"
        ],
        "framing": "front",
        "kind": "frame",
        "left": false,
        "size_mm": 1800
      },
      "transition": "cut"
    },
    {
      "actor": "juana",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "love",
      "text": "core:c00_juana_count",
      "text_mp": "core:c00_juana_count_mp"
    },
    {
      "actor": "juana",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "sad",
      "text": "core:c00_juana_missing"
    },
    {
      "do": "parallel",
      "steps": [
        {
          "actor": "david",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "juana",
          "do": "actor_face",
          "ms": 400,
          "target": "david"
        }
      ]
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 0,
      "shot": {
        "actors": [
          "juana",
          "david"
        ],
        "framing": "over_shoulder",
        "kind": "frame",
        "left": false,
        "size_mm": 1900
      },
      "transition": "cut"
    },
    {
      "actor": "david",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "sad",
      "text": "core:c00_david_search"
    },
    {
      "do": "parallel",
      "steps": [
        {
          "actor": "sonja",
          "do": "actor_face",
          "ms": 400,
          "target": "juana"
        },
        {
          "actor": "juana",
          "do": "actor_face",
          "ms": 400,
          "target": "sonja"
        }
      ]
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 0,
      "shot": {
        "actors": [
          "sonja"
        ],
        "framing": "front",
        "kind": "frame",
        "left": false,
        "size_mm": 1800
      },
      "transition": "cut"
    },
    {
      "actor": "sonja",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "nervous",
      "text": "core:c00_sonja_grey"
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 0,
      "shot": {
        "actors": [
          "juana"
        ],
        "framing": "front",
        "kind": "frame",
        "left": false,
        "size_mm": 1800
      },
      "transition": "cut"
    },
    {
      "actor": "juana",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "neutral",
      "text": "core:c00_juana_grey"
    },
    {
      "do": "parallel",
      "steps": [
        {
          "actor": "juana",
          "do": "actor_face",
          "ms": 800,
          "target": "path"
        },
        {
          "do": "camera",
          "easing": "ease_in_out",
          "ms": 3500,
          "shot": {
            "eye": "path_view",
            "kind": "place",
            "look": "path"
          },
          "transition": "pan"
        }
      ]
    },
    {
      "do": "wait",
      "ms": 600
    },
    {
      "actor": "david",
      "do": "actor_emotion",
      "emotion": "neutral"
    },
    {
      "actor": "juana",
      "do": "actor_face",
      "ms": 400,
      "target": "me"
    },
    {
      "do": "camera",
      "easing": "ease_in_out",
      "ms": 0,
      "shot": {
        "actors": [
          "juana"
        ],
        "framing": "front",
        "kind": "frame",
        "left": false,
        "size_mm": 1500
      },
      "transition": "cut"
    },
    {
      "actor": "juana",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "neutral",
      "gesture": "talk_explain",
      "text": "core:c00_juana_3"
    },
    {
      "actor": "juana",
      "delivery": "normal",
      "do": "actor_say",
      "emotion": "neutral",
      "text": "core:c00_juana_bread"
    },
    {
      "do": "fade",
      "ms": 1200,
      "to_permille": 1000
    }
  ]
}