Adds a scene to the script. Scenes are played in the order they are added.
The scene to add
Gets a scene by its ID.
The scene ID
The scene, or undefined if not found
Gets a scene by its index in the script.
The scene index
The scene, or undefined if index is out of bounds
Gets the index of a scene by its ID.
The scene ID
The scene index, or -1 if not found
Manages the complete story script with all scenes.
A Script is the top-level container for a visual novel story. It holds all scenes in order and provides methods to access them by ID or index.
Scenes are played in the order they are added to the script.
Script
Example