Skip to content

State and consequences ​

State is the story's memory. Use it for facts the experience needs to remember, not every detail you could record.

Begin with meanings ​

Write a sentence for each value: “The reader promised to return the map.” That meaning suggests a boolean. “The guide trusts the reader by degrees” may call for a bounded numeric value. “The party carries these supplies” suggests items or a list.

Avoid storing the same truth in several independent facts. If two values must always agree, decide which one is authoritative and derive the other where possible.

Define the transitions ​

For each change, identify its trigger, old state, new state, and visible consequence. Consider whether it should happen once or on every visit.

EventState changeReader-facing result
Promise to return a mapPromise becomes acceptedThe owner lends the map
Leave without returning itPromise becomes brokenA later greeting changes
Return it before leavingPromise becomes fulfilledThe owner offers help

This table is a planning example, not an automatic import format.

Watch combinations ​

Two independent booleans have four combinations; three have eight. Not every combination must be reachable, but you should know which ones are allowed and which your routes produce.

Use Story State to plan transitions and routes, Facts for actual definitions, and Actions for implemented updates. Story State's planned rules are not yet integrated into preview execution. Verify actual behavior in the player.

Non Linear documentation · Files in GitHub, no wiki database.