Spielerando

Cutscene Triggers

A cutscene trigger is a zone that starts a scene when the player is inside and a condition holds. The scene takes control away and always ends at its length. A skip counts as finished, so results still apply, and a scene that may repeat waits until the player has left the zone.

Also called: Scene triggers, Story triggers, Trigger volumes, Cinematic triggers.

A small clay mole in a blue cape stands on a glowing circle of tiles in a throne hall as curtains drop and a ring of light rises, while a tall heron queen turns towards it.
Pluckmarrow Court, an invented clay-puppet adventure. Invented game, image generated with AI.

Paste this to your AI

Copy it into Claude, Cursor or ChatGPT. It already has good values and the usual mistakes in it.

Add "Cutscene Triggers" to my game.

What it should do: A trigger starts a scene at the right moment and in the right place, so the story takes the stage exactly when the player has reached it, and never twice by accident or half done.

Build it exactly as this state machine. First check that it fits my game, then build it like this:

```mermaid
stateDiagram-v2
  [*] --> armed
  armed: Ready
  playing: Playing
  spent: Must leave first
  done: Finished for good
  armed --> armed: nothing to start it
  armed --> playing: enters, condition met
  playing --> playing: scene goes on
  playing --> done: ends, no plays left
  playing --> spent: ends, still inside
  playing --> armed: ends, player outside
  spent --> spent: still inside
  spent --> armed: player leaves
  done --> done: never again
  done --> [*]
```

Use these starting values:
- length: 6 s
- skipAfter: 1 s
- maxPlays: 1 plays

Watch out for these common mistakes:
- A skipped scene leaves the story half done: Tell your AI: when a scene is skipped, apply its results just as when it ends, and report both with the same answer.
- The scene plays again at once: Tell your AI: after a scene ends with the player inside, wait until the player has left the zone before it can start again.
- A button press skips a scene nobody saw: Tell your AI: accept a skip only after the scene has run for a short time, and do not remember presses that came too early.
- The player walks out and the scene stops: Tell your AI: once a scene has begun, only its own length or a skip may end it, never where the player is or what the condition says.
- The save remembers a scene that was never finished: Tell your AI: count a scene as played only when it ends or is skipped, and save that count, so a save made during a scene plays it again.

Do not change anything else in the game. Do not claim anything without proof: model what it takes, and show me what your solution rests on and how I can see that it works. If you cannot show something, say you do not know. When you are done, tell me in plain words how to try it.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP

What it does

A trigger starts a scene at the right moment and in the right place, so the story takes the stage exactly when the player has reached it, and never twice by accident or half done.

How it runs, as a diagram

Everything it can be in, and what moves it on. Your AI builds from exactly this.

nothing to start itenters, condition metscene goes onends, no plays leftends, still insideends, player outsidestill insideplayer leavesnever againReadyPlayingMust leave firstFinished for good
How it runs, as a diagram
  • Ready → Ready: nothing to start it
  • Ready → Playing: enters, condition met
  • Playing → Playing: scene goes on
  • Playing → Finished for good: ends, no plays left
  • Playing → Must leave first: ends, still inside
  • Playing → Ready: ends, player outside
  • Must leave first → Must leave first: still inside
  • Must leave first → Ready: player leaves
  • Finished for good → Finished for good: never again

Good starting values

ValueStart withWhat it changes
length6 sHow long the scene runs. A scene always ends at this time, so the player always gets control back.
skipAfter1 sHow far into the scene a skip is accepted. It keeps a player who is mashing a button from skipping a scene they never saw. Zero allows skipping at once.
maxPlays1 playsHow many times the scene may play in all. One means once only. More needs the player to leave the zone and come back.

What usually goes wrong

A skipped scene leaves the story half done

The scene was meant to hand the player a key and set "met the queen". Skipping cuts the scene off before that line, and the door can never be opened.

Fix: Tell your AI: when a scene is skipped, apply its results just as when it ends, and report both with the same answer.

The scene plays again at once

A scene that may repeat ends while the player is still inside the zone, and starts again in the next moment, over and over.

Fix: Tell your AI: after a scene ends with the player inside, wait until the player has left the zone before it can start again.

A button press skips a scene nobody saw

The player is fighting and pressing the skip key by habit when a scene starts. It disappears in the first second.

Fix: Tell your AI: accept a skip only after the scene has run for a short time, and do not remember presses that came too early.

The player walks out and the scene stops

The zone is a doorway. The scene starts, the player is carried or pushed out of it, and the scene stops with the story half told.

Fix: Tell your AI: once a scene has begun, only its own length or a skip may end it, never where the player is or what the condition says.

The save remembers a scene that was never finished

The game saves in the middle of a scene and stores "played". After loading, the story acts as if the scene was seen, though the player only saw half.

Fix: Tell your AI: count a scene as played only when it ends or is skipped, and save that count, so a save made during a scene plays it again.

How to check it works

Works well with

Common questions

how do cutscene triggers work

A trigger is an area in the world plus a condition. When the player is inside and the condition holds, the scene starts, the player loses control, and the game remembers that the scene was played.

what happens if the player skips a cutscene

Skipping must give the same result as watching to the end: the same items, the same flags, the same place for the player. Treat a skip as a fast finish, not as a cancel.

what do i tell my ai to add a cutscene trigger

Paste this: Add a cutscene trigger zone. The scene starts when the player is inside and a flag is set, takes control, can be skipped after 1 second, and applies its results the same way when skipped. Play it once, and never start it during another scene.

should a cutscene be skippable

Yes, almost always. Players who replay the game or lose the thread will thank you. Allow the skip after a moment, so a button press from before the scene started does not skip it.

Where it comes from

We could not find a reliable origin for this one yet.

Where this mechanic comes from has not been researched yet.

Games are named only as references. Names and marks belong to their owners, and nothing here is endorsed by them.

What was checked

This is what separates the blueprint from a catalogue entry: the values on this page come from code that runs.

Your AI gets the code

Tested example code comes through the Spielerando connection, so your AI can use it right away. How to connect it