# ChoiceScript

Text\-based language and runtime for branching interactive novels with persistent character statistics\.

ID: Q1333 · Revision: 1381

Type: software · License: ChoiceScript License v1\.0: noncommercial use; commercial use requires a separate license[^license] · Status: active

Website: https://www.choiceofgames.com/make-your-own-games/choicescript-intro/



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\.[^intro][^test][^export][^license]

## Capabilities and substitutions

### Branching scenes and state — supported

Indented choices and variables control later story outcomes\.[^intro]

Use case: Choice\-driven interactive novels with character statistics · Platforms: Browser runtime, Node\.js development server, Windows/macOS documented setup · Region: Version, build and integration requirements apply

### Automated narrative testing — limited

Quicktest and Randomtest catch different problems but do not replace manual review or prove complete path coverage\.[^test]

Use case: Choice\-driven interactive novels with character statistics · Platforms: Browser runtime, Node\.js development server, Windows/macOS documented setup · Region: Version, build and integration requirements apply

### Exported progress persistence — limited

The export guide requires an IFID to preserve progress locally across browser refreshes\.[^export]

Use case: Choice\-driven interactive novels with character statistics · Platforms: Browser runtime, Node\.js development server, Windows/macOS documented setup · Region: Version, build and integration requirements apply

### Commercial distribution — limited

The default license excludes commercial purposes, including advertising revenue; a separate license is needed\.[^license]

Use case: Choice\-driven interactive novels with character statistics · Platforms: Browser runtime, Node\.js development server, Windows/macOS documented setup · Region: Version, build and integration requirements apply

### [Substitute for Twine](/twine) — limited

Can 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\.[^intro][^stats][^license][^twine]

Use case: Choice\-driven interactive novels with character statistics · Platforms: Browser runtime, Node\.js development server, Windows/macOS documented setup · Region: Version, build and integration requirements apply

## References

[^intro]: [ChoiceScript introduction](<https://www.choiceofgames.com/make-your-own-games/choicescript-intro/>) — Scene files, indentation, choices, variables and development server (vendor; retrieved 2026-10-07T20:58:39Z)

[^stats]: [ChoiceScript stats screen](<https://www.choiceofgames.com/make-your-own-games/customizing-the-choicescript-stats-screen/>) — Stat charts, opposed pairs and return to paused scene (vendor; retrieved 2026-10-07T20:59:46Z)

[^test]: [Automatic ChoiceScript testing](<https://www.choiceofgames.com/make-your-own-games/testing-choicescript-games-automatically/>) — Quicktest, Randomtest and coverage/false\-positive caveats (vendor; retrieved 2026-10-07T20:59:00Z)

[^export]: [Exporting and publishing ChoiceScript](<https://www.choiceofgames.com/make-your-own-games/exporting-and-publishing-your-game/>) — HTML export, IFID persistence and publishing routes (vendor; retrieved 2026-10-07T20:59:00Z)

[^license]: [ChoiceScript License v1\.0](<https://github.com/dfabulich/choicescript/blob/main/LICENSE.txt>) — Noncommercial scope, interpreter modifications and separate commercial license (vendor; retrieved 2026-10-07T20:59:32Z)

[^twine]: [Twine overview](<https://twinery.org/>) — Nonlinear story authoring, variables and HTML output (vendor; retrieved 2026-10-07T20:47:21Z)

Source revision: https://substitutefor.net/entities/Q1333?revision=1381
