Branching Ending System Based on Five Final Flags

The finale checks five accomplishments and a betrayal override. Real ally survival, enemy defeat, a found relic and a rescued innocent combine with the main goal. Endings are checked only at the final room, with betrayal taking priority.

What this example teaches

Guided setup · Existing-item checks · Editable messages · Saved recipe settings