Director.module
This package holds more than this page lists. See all of its files in its world.
README.md
Director
Runs Kicked Out of the Hero's Party from boot() (called by scenes/main.scene/entrypoint.luau in play): title screen → prologue → chapter 1 → guild hub ↔ chapters 2, 3 and the finale (gated by guild rank) → ending → title.
It is a script runner: each chapter is a data module under game/story/chapters/ (steps from game.story.Script), executed one step at a time in a task that parks on the UI / Whisper callbacks. It owns rewards (from Rules.whisperReward into game.State, with toasts, level-up and rank-up beats), checkpoints (each chapter start, each labelled checkpoint, and before every whisper), System Error retry, and CONTINUE (fast-forwards the chapter's staging up to the saved checkpoint, then plays on).
Director.status() reports where the run is (screen, chapter, step, the last line said) for tests; Director.trace() the last 200 beats.