Local Scripts

Local scripts are what this book refers to as scripts that share the same namespace as proper Gameplay Scripts.

Below is a table, detailing the various types of local scripts:

ParentLocation
Stagedata/stages/{stage}.hx
Characterdata/characters/{char}.hx
Eventdata/events/{event}.hx
Notetypedata/notes/{note}.hx

Each one has an assigned parent that details their type. Each local script only gets run when their parent is active; for example, in the case of a stage script, then the stage would be active.

Do note that, in the case of a stage script, then the script has access to the stage elements as variables.

Callbacks

Shared with Gameplay Scripts.