Sharpee
Chord / Standard Library / Plugins & Daemons / Turn plugins and priority

Turn plugins and priority

After each successful player action (never after a failed one, and never after a meta command) the registered turn plugins run in descending priority, and their events join the same turn's output: an NPC's move and a fuse's explosion read as part of the turn that caused them. Each plugin sees the world, the turn, the player, the action's result, and the engine's seeded randomness; plugin state rides in saves.

PluginPriorityA Chord story has itA TypeScript story has it
NPC behavior100always — NPCs are core vocabulary, no opt-in (ADR-215)when the story registers it
State machines75with use state-machines in the headerwhen the story registers it
Scene evaluation60always on (engine level)always on (engine level)
Scheduler50exactly when at least one daemon compiledwhen the story registers it

Only the scene evaluator is always on at the engine level; a TypeScript story registers the rest itself (Dungeo registers all three).