A script is a resource type that is used to trigger various events during your game or to manipulate and evaluate data. They can be triggered by various methods like the player interacting with an object or stepping onto a tile, or from within a dialogue to invoke cutscene events. Scripts are created visually in the node-based Script Editor or, in certain situations, from source code using the Quick Script Builder.
Each game requires at least one script, specifically the startup script. This script is set in the Game Configuration and instructs the game what to do when it first launches, for example loading a map and displaying a message to the player.