Skip to reading
The Cutscene Designer

Give skip its own ending

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
PCA 3D ADVENTURE STUDIO  /  CUTSCENE DESIGNER                                           0.86.4.3

Open Markers & Hooks for the selected cutscene. This example records whether the player heard the whole introduction and dismisses the title on either exit. Use the ID of your own title GUI.

Code example
{
  "cinematicVersion": 1,
  "markers": [{"name": "door_opens", "time": 2.5}],
  "hooks": {
    "completed": [
      {"type": "SetVariable", "name": "heard_intro", "value": true}
    ],
    "skipped": [
      {"type": "SetVariable", "name": "skipped_intro", "value": true}
    ],
    "finished": [{"type": "HideGUI", "guiId": "title_card"}]
  }
}
Source table from Give skip its own ending, page 78
1.Create the two Boolean story variables with initial value false. In the dialog, keep any existing markers and hooks you still use. Apply the JSON, enable Skippable, then save.
2.Test from a fresh game state and play to the end. Confirm heard_intro becomes true and the title closes. Restart from the same initial state and skip early. Confirm skipped_intro becomes true, heard_intro remains false and the title still closes.
3.Use interrupted for replacement or interruption and failed for a failed run. start runs before the clock begins. The reason-specific hook runs before finished. Each hook has a five-second limit.

UPDATING AN EXISTING SEQUENCE

Timed legacy cutscenes can use Visual Preview immediately. Authoring a managed timing feature, a marker, a hook or cinematicVersion 1 enables the new scheduler for that sequence. If a wrapper already grants a reward, keep a single owner for it.

Cutscene Designer                                                                                 78
Page 78 of 78Permalink
Go to page