44. Decide what “play once” means
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.
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.
| Situation | Intended result |
|---|---|
| Fresh game | The introduction plays. |
| Player skips | It still counts as handled, if that is your story rule. |
| Player returns to the room | It does not replay. |
| A different button calls the same wrapper | The same guard applies. |
| New game / reset state | The 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.
