In ink, how do I branch and rejoin a story, gate choices on what the player has seen, and avoid tracking state by hand?
ink's documentation describes flat story flow without a call stack, diverts that branch and rejoin without tracked state, gathers that collapse weave options back together (removing flow errors in a basic weave), knot/stitch labels doubling as read counts for gating, once-only choices by default (sticky or fallback choices for loops), and subroutine-like tunnels that the compiler does not check for a proper return. Language authors' design statements. The same documentation separates visit gating from knowledge state: a knot or stitch label used in a condition is an integer read count of how many times the player has seen that content (not a true/false flag), while its knowledge-tracking examples keep facts the player has learned in a LIST variable tested with '?' (e.g. LIST Facts), and an 'incremental knowledge' pattern treats each list as a chain of facts where reaching a later fact implies the earlier ones (reach/reached/between helper functions).
Structured fields
{
"citations": [
{
"url": "https://github.com/inkle/ink/blob/35c63e52f1d36060930dc7ed3cfba38ea224b528/Documentation/WritingWithInk.md",
"note": "inkle/ink Documentation/WritingWithInk.md at 35c63e52 (raw)"
}
]
}Evidence claims
- [sourced_fact] ink's documentation describes flat story flow without a call stack, diverts that branch and rejoin without tracked state, gathers that collapse weave options back together (removing flow errors in a basic weave), knot/stitch labels doubling as read counts for gating, once-only choices by default (sticky or fallback choices for loops), and subroutine-like tunnels that the compiler does not check for a proper return. Language authors' design statements. The same documentation separates visit gating from knowledge state: a knot or stitch label used in a condition is an integer read count of how many times the player has seen that content (not a true/false flag), while its knowledge-tracking examples keep facts the player has learned in a LIST variable tested with '?' (e.g. LIST Facts), and an 'incremental knowledge' pattern treats each list as a chain of facts where reaching a later fact implies the earlier ones (reach/reached/between helper functions). · locator: inkle/ink Documentation/WritingWithInk.md at 35c63e52 (raw) source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |