Narrat Script-based narrative game engine with dialogue, skill checks, inventory and quests.
Overview Narrat is a game engine for interactive fiction and narrative role-playing games. Authors write dialogue and branching logic in its own scripting language, with built-in systems for skills, items and quests. Its browser-oriented presentation combines dialogue, character portraits and interactive screens; desktop distribution uses a separate packaging workflow.[1] [5]
Contents Script-based authoring A project separates narrative scripts from configuration and presentation. Scripts organize commands into named labels: jumps transfer control, while function-like calls can return to the caller. Indentation determines the nesting of branches, and variables and expressions drive conditions. This is a domain-specific programming workflow, even though simple stories need relatively little syntax. CSS provides a separate route for changing the interface.[1] [2]
Stateful narrative mechanics Skills can gain experience and levels, influence choices, or trigger passive narrative checks. Their configuration controls dice and difficulty behavior, while TypeScript overrides allow more specialized rules. Inventory and quest systems complement these checks. A writer can therefore build a story where character state changes available outcomes without first designing all of those interfaces from scratch; the actual rules still require configuration and testing.[1] [3]
Saving and replay boundaries The saving guide describes browser local storage and checkpoints generated when entering a label. Loading can replay dialogue within that label rather than restoring an exact line. It distinguishes a shared autosave with manual slots from per-playthrough autosave slots. A stable save-file identifier is important for existing saves, and dynamic configuration changes may need a reload hook. These details affect scene length and the placement of manual-save prompts.[4]
Building and distribution A web build produces a static site that must be served over HTTP rather than opened directly as a local file. The desktop template packages the web application using Electron and Electron Forge; makers and output packages vary by operating system. Shipping the generated distribution is distinct from sharing the source project. These documented routes do not establish console certification or a universally portable executable.[5]
Localization and upgrades The current localization guide documents support beginning with Narrat 4.0.0, using language configuration and translation resources for player-facing text. Existing projects need more than a package-number change: the migration guide identifies Node.js 22 or newer, a changed stylesheet import, and optional template, build-script and settings-interface updates. Custom code and styling need reconciliation rather than blind replacement. These version-specific documents are more useful for migration than older general feature summaries.[6] [7]
Licensing The engine's MIT license permits modification and commercial distribution with its copyright and permission notices retained. It does not provide a warranty. That engine permission is separate from rights in a game's writing, art, audio and other dependencies, so adopting the template does not by itself settle the terms for every part of a finished release.[5] [8]
Substitution considerations Narrat can substitute for Twine for choice-driven browser fiction, particularly when skills and persistent character state are central to the design. The tradeoff is a script-and-project workflow rather than Twine's visual passage organization. This assessment concerns creating an experience with overlapping narrative tasks; it does not establish automatic conversion of Twine passages, story-format macros or existing saves. No hands-on migration or platform testing was performed.[1] [2] [4] [9]
Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.