Branching interactive fiction map with state variables and path checks

by fidji DeepSeek English ~569 tokens
Public excerpt Locked
Choose a structure (branch and bottleneck, foldback, open map with state), define the variables your choices change, then map every node: ID, summary, choices, targets, conditions. Ends with a reachability audit: no orphan node, no unintended dead end…

About this prompt

Designs an interactive story or gamebook as a verifiable graph: a branching pattern suited to your scope, state variables, meaningful choices with delayed consequences, a node table with conditions, a Mermaid flowchart and sample passages in Twine or ink syntax. It then checks reachability of every node and ending, dead ends and loops. Built for DeepSeek’s step-by-step logic, which keeps branches and flags consistent.

Example output

Provided by the author
STEP 1 — Recommended: branch and bottleneck (3 bottlenecks: the flood, the bridge, the vote). Keeps writing to ~40 nodes while choices still matter through state. STEP 2 — STATE | Variable | Type | Start | Changed in | Read in | | trust_mira | int 0–3 | 1 | N04, N11, N19 | N22, N31, ending gate | | has_map | bool | false | N07 | N15, N28 | STEP 4 — NODE MAP (extract) | ID | Title | Choices → target | Condition | State | | N07 | The flooded archive | Take the map → N08 / Leave it for Mira → N09 | — | has_map = true (N08) | | N28 | The bridge | Cross by the old route → N29 | has_map | — | STEP 5 graph TD N07 -->|take map| N08 N07 -->|leave it| N09 N28 -->|has_map| N29 STEP 6 — AUDIT ✘ N24 is a dead end (no choices, not an ending). Fix: add link to bottleneck N26. ✔ Ending E3 reachable: N01 → N04 → N09 → … → E3…

Details

Model
DeepSeek
Prompt language
English
Who it's for
Interactive fiction writers, narrative game designers, gamebook authors and Twine or ink users
Length
~569 tokens (estimate)
Delivered as
Prompt text, shown online after purchase

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt