ChoiceScript Wiki

    The *comment command is used for adding text that the game won't display, allowing the author to annotate their code and text.


This code:

*comment this message will not show up

will be displayed this way:


Note that a *comment must occupy its own new line. The following:

Hello! *comment this message will not show up

will defeat the purpose and be displayed as:

Hello! *comment this message will not show up

This command is useful in a variety of ways:

  • to leave yourself To Do notes,
  • to keep track of what a bit of code does,
  • to organize the long list of *create variables in startup.txt,
  • to show your code to someone else who may not understand it and may require explanation through comments.

More commands / functions
Choice *choice, *fake_choice, *disable_reuse, *hide_reuse, *allow_reuse, *selectable_if
Variable *create, *temp, *set, Arithmetic operators, *delete, *input_number, *input_text, *print, *rand
Conditional *if, *elseif, *else, Multireplace
Goto *label, *goto, *goto_scene, *goto_random_scene, *gosub, *gosub_scene, *finish
Formatting Bold text, Italic text, *image, *line_break, *page_break, *link, *stat_chart
Miscellaneous *comment, *scene_list, *title, *author, *achieve, *achievement, *check_achievements, *bug, *ending, *more_games, *share_this_game, *show_password, *script, Implicit Control Flow