software · Q1333
ChoiceScript
Text-based language and runtime for branching interactive novels with persistent character statistics.
Overview
ChoiceScript is a text-based programming language and runtime for interactive novels. Authors write scenes containing prose, choices and commands that update character state or choose later branches. It supports browser-based testing and HTML export, with dedicated tools for exploring narrative paths and a separate licensing route for commercial use.[1][3][4][5]
Writing scenes
A story is organized into plain-text scene files. Indentation groups the outcomes belonging to each choice, while labels and jumps allow paths to reconnect instead of duplicating prose. Variables can carry earlier decisions into later scenes. Files need the expected UTF-8 encoding, and the documented local workflow uses a Node.js server to preview changes in a browser. This is a scripting environment rather than a visual passage map.[1]
Character state and statistics
The statistics screen is itself a scene that temporarily interrupts the current scene and then returns to it. Authors can show text values, percentage bars and opposed pairs, or keep selected variables hidden. An opposed pair can represent two ends of one value rather than two independently changing attributes. This supports character traits and relationships without requiring every internal variable to appear in the interface.[2]
Testing branching narratives
Quicktest attempts alternatives on both sides of conditions and can report problems on paths that real players cannot reach. Randomtest instead runs repeated playthroughs with reproducible seeds and produces line hit counts. A line with no hits may be unreachable or simply rare. The tools complement one another, but neither confirms prose quality, balanced decisions or every possible state combination; the documentation explicitly retains a role for manual testing.[3]
HTML export and saved progress
The exporter produces an HTML game file for distribution or a suitable web host. The export guide warns that omitting the story's IFID can cause progress to disappear when the browser tab is closed or refreshed. With the identifier configured, progress is stored locally in the browser. That is not evidence of account-based cloud synchronization or portable saves across devices.[4]
Licensing and commercial use
The default ChoiceScript License permits noncommercial use and modification while requiring retention of the license. It also requires an unrestricted, transferable, nonexclusive license to the named developers for modifications to the interpreter. Commercial purposes, including advertising revenue, are outside that default permission. A creator seeking paid distribution needs the applicable commercial agreement rather than assuming that publicly available source is permissively licensed.[5]
Publishing routes
The publisher documents self-distribution to testers or public free distribution, alongside its publishing labels. Hosted Games can distribute titles as mobile applications and on Steam, with forum beta testing described as a prerequisite. Those routes involve their own requirements; compiling a working HTML file does not by itself establish acceptance, store approval or a particular revenue arrangement.[4]
Substitution considerations
ChoiceScript can substitute for Twine for a new choice-driven story whose main interactions are reading, selecting options and changing character state. It favors a scene-and-command workflow with a built-in statistics presentation. The comparison does not imply import of Twine passages or macros, nor equivalent commercial permissions. A switch should be evaluated around the intended narrative mechanics and distribution route, not just the shared ability to produce HTML. No hands-on migration was performed.[1][2][5][6]
Capabilities & limitations
Branching scenes and state
supportedIndented choices and variables control later story outcomes.[1]
Choice-driven interactive novels with character statistics · Browser runtime, Node.js development server, Windows/macOS documented setup · Version, build and integration requirements apply
1 source · check evidence
Scene files, indentation, choices, variables and development server
vendor · checked 2026-10-07Automated narrative testing
limitedQuicktest and Randomtest catch different problems but do not replace manual review or prove complete path coverage.[3]
Choice-driven interactive novels with character statistics · Browser runtime, Node.js development server, Windows/macOS documented setup · Version, build and integration requirements apply
1 source · check evidence
Quicktest, Randomtest and coverage/false-positive caveats
vendor · checked 2026-10-07Exported progress persistence
limitedThe export guide requires an IFID to preserve progress locally across browser refreshes.[4]
Choice-driven interactive novels with character statistics · Browser runtime, Node.js development server, Windows/macOS documented setup · Version, build and integration requirements apply
1 source · check evidence
HTML export, IFID persistence and publishing routes
vendor · checked 2026-10-07Commercial distribution
limitedThe default license excludes commercial purposes, including advertising revenue; a separate license is needed.[5]
Choice-driven interactive novels with character statistics · Browser runtime, Node.js development server, Windows/macOS documented setup · Version, build and integration requirements apply
1 source · check evidence
Noncommercial scope, interpreter modifications and separate commercial license
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Twine for Choice-driven interactive novels with character statistics
limitedCan replace authoring of new choice-driven browser stories when a scene-based language and stat-centered design are preferred. Syntax, project structure and commercial terms differ; no source conversion is established.[1][2][5][6]
Browser runtime, Node.js development server, Windows/macOS documented setup · Version, build and integration requirements apply
References
- ChoiceScript introduction
Scene files, indentation, choices, variables and development server
vendor · retrieved 2026-10-07 - ChoiceScript stats screen
Stat charts, opposed pairs and return to paused scene
vendor · retrieved 2026-10-07 - Automatic ChoiceScript testing
Quicktest, Randomtest and coverage/false-positive caveats
vendor · retrieved 2026-10-07 - Exporting and publishing ChoiceScript
HTML export, IFID persistence and publishing routes
vendor · retrieved 2026-10-07 - ChoiceScript License v1.0
Noncommercial scope, interpreter modifications and separate commercial license
vendor · retrieved 2026-10-07 - Twine overview
Nonlinear story authoring, variables and HTML output
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 1381 | 2026-10-14 08:37:35 | /* wbeditentity-create-item:0| */ sf:34a20eeb-fadb-4ecf-bd74-6e306d708629:v1 | Add ChoiceScript with testing limitations, HTML persistence requirements and noncommercial default licensing; compare new choice-fiction workflows with Twine. | attribution: /proposals/34a20eeb-fadb-4ecf-bd74-6e306d708629 |