Learning ChoiceScript
- 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.
Customizing the Stat Screen
When playing a ChoiceScript game, there is a button label “Show Stats” that shows values associated with the game. This “stat screen” has an exclusive command not available in other files: *stat_chart.
Like other scenes, the Stat screen allows for using text formatting and other styling. However, the use of the *stat_screen is limited to three types of value displays: percent, text, and opposed_pairs.
Percent
When used with the *stat_chart command, percent shows the value as a percentage with a default horizontal bar.
Text
When used with the *stat_chart command, text shows the value as a string, either showing the number, characters, or other combinations of the two.
Opposed Pairs
The command *opposed_pairs computes a total percentage based on the values of two values and creates a horizontal bar with both values shown within it.
Customizing
While values can be used with the different types of percent, text, and opposed_pairs, labels can also be given to the variables.
The label for the values follows after the value and type to show.
Value Opposed to Itself
When written with a single value, the opposed_pair type can also show percentages with values for its percentage up to a value of 100.
Multiple uses of *stat_chart
The command *stat_chart can be used multiple times on the Stat screen, allowing for labels for sections or additional descriptions between statistic sections.