Skip to reading
The Cutscene Designer

44. Decide what “play once” means

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

A first-entry event and an intro_seen variable answer related but different questions. First entry belongs to the room’s visit history. The variable belongs to the story and can guard several launch routes.

Code example
if bool(Runtime.variables.get("intro_seen", false)):
    return
await StartCutscene({"cutsceneId":"workshop_intro"})
await SetVariable({"name":"intro_seen", "value":true})

Define intro_seen as a Boolean starting false. Place the guard in the script that launches the cutscene. The completed wrapper in Appendix B adds the required cleanup between playback and setting the flag.

Source table from 44. Decide what “play once” means, page 48
SituationIntended result
Fresh gameThe introduction plays.
Player skipsIt still counts as handled, if that is your story rule.
Player returns to the roomIt does not replay.
A different button calls the same wrapperThe same guard applies.
New game / reset stateThe initial false value permits a new introduction.

Do not put the only completion flag in the last scheduled event and assume it will run on skip. A skipped timeline does not fast-forward through its remaining actions.

Page 48 of 78Permalink
Go to page