Learning ChoiceScript: Part 9: Meta Commands

Learning ChoiceScript

ChoiceScript is a scripting language from Choice of Games LLC for creating choose-you-own-adventure games.


 

Meta Commands

Introduced in screenshots and code starting with Part 2 of this series, there are commands that do not produce output, but who work on the project itself. These are the meta commands: *title*author, and *comment.

Title

Screenshot 2018-08-26 19.26.51

The *title command does as it name implies: it sets the title of the project. When used toward the beginning of the startup.txt file, it defines the title.

Author

Screenshot 2018-08-26 19.26.51

The *author command, like the *title command, follows a similar functionality. It defines the author.

 

Comment

Screenshot 2018-08-26 19.30.32

Unlike *author and *title, the *comment command is for the programmer only. It allows for writing comments within the code that do not appear when it is run.

Screenshot 2018-08-26 19.34.22

GitHub Gist Version: