The *scene_list command is used to create a chronological list of all the scenes in the game, so that it may be referenced by commands such as *finish. This command is exclusive to the startup.txt file and cannot be used in any other game file.
*title My First ChoiceScript Game *author Jane Doe *scene_list startup chapter1 chapter2 chapter3 chapter5 *create var1 0 *create var2 true *create var3 ""
The *scene_list command is used by ChoiceScript to govern the game navigation through your various scene files, by enabling you to provide a sequential list of scene files - listed in the order in which they are intended to be played through.
When ChoiceScript hits a *finish command in any scene file it will check the *scene_list to determine which scene follows the current one, and then proceed to load it. To use the example list above, if it encounters a *finish command while running chapter2, it will know from the *scene_list to load chapter3, and so forth.
For each entry in the *scene_list there must be a text file of that exact name (excluding only the .txt file extension) currently present in the game's 'scenes' folder (..web\mygame\scenes). If that precise filename does not exist there, the game will crash with a 'Couldn't load URL' error.
|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|
|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|