Story Tools
Branching stories as state, not as trees. A Petri net decides what can happen next; plain text says how it reads.
A story written as a tree duplicates every branch that rejoins, and every combination of "has the sword" × "told the truth" × "night time" multiplies the nodes. Multilinear models the story as independent aspects — location, mood, who knows what — that change in parallel under constraints. An event fires only when its conditions hold; what the player can do next falls out of the state. Underneath sits a Petri net, so reachable states, dead ends and events that never fire can be inspected.
# Leave home
location: home > outside
mom: > alone
# Sidestory mom
mom: alone > party# Leave home
So you decide to leave.
You hug your mom and go outside.multilinear example.mld
story example.pk
The structure file never holds a word of prose, the prose file never a condition; they match by heading. Rewrite the text without touching the logic, rewire the logic without touching the text.
- VNgineVisual novel player: runs the simulation, renders prose, dialog boxes and choices. Browser · Linux · source
- PN EditorBuild and run Petri nets visually; watch the tokens move. Linux · Windows · source
- mlplayPlay a story in the terminal, no assets needed. Linux · Windows
- mlcheckFind unreachable events and dead ends. Linux · Windows
- multilinear2dot · 2pnStory graph for Graphviz, or a Petri net for the editor. dot Linux · Win — pn Linux · Win
- multilinearstories as constrained parallel aspects
- multilinear-parserthe
.mldformat - petri-net-simulationplaces, transitions, tokens
- event-simulationevent-based application state
- dialogidialog lines, speakers, choices
- vn-settings · femto-dialogtext speed, text boxes