ChoiceScript Wiki
Advertisement
ChoiceScript Wiki

   

In an iteration of the Choicescript language on GitHub[1], the randomtest will produce an error if the code loops too many times, such as the one below.

RANDOMTEST FAILED: Error: startup line 34: visited this line too many times

*looplimit is a debugging tool for a randomtest. By default, the randomtest can only loop 1,000 times before it stops to prevent an infinite loop. What *looplimit does is increase or decrease the limit the randomtest will loop before it produces an error. This is done by adding the following to the code and replacing "your_limit_here" with an integer:

*looplimit your_limit_here

Sources

Original forum post by Dan Fabulich[2]


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
Advertisement