User Tools

Site Tools


script

Script


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.

Examples:

  • Playing an “opening” animation and giving an item to the player when they click on a treasure chest.
  • Initiating a cutscene or a battle when the player steps onto a specific tile.
  • Moving the camera to focus on a character as they speak during some dialogue.

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.

script.txt · Last modified: 2020/05/04 08:42 by justin