the flag spine

load-bearing NPC deck quests · the deck-stacking guarantee — hoop story engine, v101

One load-bearing NPC per deck blocks advancement to the next deck. They give an informational quest: “gather lore until these flags are set.” The flags are set by the lore you gather — a fragment may carry a flag, set the moment you crystallize it. When every prerequisite flag is held the quest is ripe, the NPC pages you, and a previously hidden, flag-gated turn-in dialogue opens and advances the deck. The engine guarantees you can never draw forever without the fragments — that's the demo at the bottom.

The loop

The pieces — where each step lives

stepwhere

The five decks & their load-bearing quests

The narrative climb (decks.js). Each deck's quest gates on a set of flags. The flag chips below are illustrative — derived from each deck's themes to show the shape; hoopy authors the real ones on the lore (produces.sets) and the load-bearing NPC's tree.

The deck-stacking guarantee — live

The part hoopy flagged as Claude's: “make sure the player doesn't draw forever without receiving the relevant fragments — start stacking the deck at some point if necessary.” This runs the real stackPriority + engine.interact from the modules, not a mock. The flag-producing fragments are deliberately variety-disfavoured, so a plain draw saves them for last.

distractor lore flag-producer crystallized forced by stacking quest ripe here

pure modules: deckquest.js · engine.js · decks.js · advance.js — pinned by test/deckquest.selftest.mjs (33 checks). design notes: story/SPINE.md.
the game (v102) · nave content slots · mino.mobi