User Tools

Site Tools


script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
script [2017/10/20 13:25] justinscript [2020/05/04 08:42] (current) justin
Line 2: Line 2:
 ---- ----
  
-A **script** is a resource type that'used to trigger various events at game-time or to manipulate and evaluate data.+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]].
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-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]] or displaying a message to the player.+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.
 </WRAP> </WRAP>
 +
 +{{:wiki:startup_script.png?nolink|}}
  
 ~~NOTOC~~ ~~NOTOC~~
script.1508531130.txt.gz · Last modified: 2017/10/20 13:25 by justin