First Script
This is one of the main sections of the app. A script is authored content that your game runtime can interpret, and it can be written in different editor modes.
A script can be standalone or linked to dialogue nodes. In modern workflows, standalone scripts are great for reusable logic while dialogue-linked scripts keep branching graphs readable.
Try this in your sample project:
- Open a script document and add a line like
::Narrator:: Hello from Drafft. - Add one command line such as
<PlayDialogueByAlias(intro)> - Save and preview to validate formatting
The highlighting you see (::Actor::, <Command()>, etc.) comes from Drafft Scripting Syntax.
Also note that this script has an id and an alias shown in the script editor footer.
State-Aware Scripting
Modern Drafft workflows commonly use script directives that interact with Variables and Scenarios.
Example:
@set variables.player.mood = "curious"
::Narrator:: Player mood is now ${variables.player.mood}.
Read next: