- Part 1: Playing “My First ChoiceScript Game”
- Part 2: Choice, Finish, and Ending
- Part 3: Scenes
- Part 4: Using Variables
- Part 5: Text Formatting and Images
- Part 6: Fairmath
- Part 7: Inputs
- Part 8: Labels and Subrountines
- Part 9: Meta Commands
- Part 10: Customizing the Stat Screen
ChoiceScript is a scripting language from Choice of Games LLC for creating choose-you-own-adventure games.
While the *goto_scene command can direct the player to another scene, there is other functionality that can reduce the dependence on using different files and help with better organizing code: labels.
Using the *label command tells ChoiceScript to create a small section of code that can be visited like a sub-scene.
Going to a scene is similar to using the command *goto_scene but references the scene and the label.
Working like labels, subroutines are designed for doing a small, function-like task and then returning to the original place.
Using the *label command, they are defined just like other labels but use the additional command *return.
Subroutines are used through the *gosub command and then the name of the label.