Back to Creator Cookbook Samples

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.

Try the sample

Play the sample game · Download the editable game

This recipe includes its own ending. Follow the walkthrough to reach it. Restart the sample to try again.

Set it up in your game

In TAGMaker, open Guide → Creator Cookbook → Branching Ending System Based on Five Final Flags, then choose Start this recipe. This opens the guided setup in Rooms.

  1. Under Choose the rooms and items, choose Create a new item or select an existing item by name. Give new items clear names and descriptions.
  2. If a direction already has a connection, explicitly choose Use existing connection. Its destination must match this recipe. Existing locks, access requirements and linked pairs are checked before saving.
  3. Read Messages and choices and change the text to fit your game.
  4. Review what will be added, reused, changed and kept. Resolve any message beside the choices.
  5. Choose Save recipe, then Save Project at the top to save your editable project file. Use Play Test to try the result.

Choices you can change

Walkthrough

These commands use the sample’s original names. Use your own names if you rename its items. Start a fresh game for each separate walkthrough.

Five accomplishments select the perfect ending only at the finale

  1. USE SIGNAL CONSOLE
  2. TALK ALLY
  3. ATTACK TYRANT
  4. ATTACK TYRANT
  5. TAKE SECRET RELIC
  6. TALK CAPTIVE
  7. WEST
  8. TALK CAPTIVE
  9. EAST
  10. NORTH

Main goal alone produces the ordinary ending

  1. USE SIGNAL CONSOLE
  2. NORTH

Missing the main goal produces failure

  1. NORTH

Betrayal overrides an otherwise perfect outcome

  1. USE SIGNAL CONSOLE
  2. ATTACK TYRANT
  3. ATTACK TYRANT
  4. TAKE SECRET RELIC
  5. TALK CAPTIVE
  6. WEST
  7. TALK CAPTIVE
  8. EAST
  9. USE BETRAYAL SEAL
  10. NORTH

The final action ends the sample. Restart it to explore a different attempt.

Saving, returning and correcting a choice

Save recipe puts the complete setup into the current game. Save Project saves the project file. Reopen this guide and choose Start this recipe → Edit saved recipe to change the saved messages without creating duplicates. A saved setup keeps its original items and connections; create another recipe for a different setup.

Keep for later stores unfinished choices. Leaving for the guide also keeps the draft. Discard draft removes only those unfinished changes. Creator Undo reverses the entire recipe save in one step.

Existing rooms keep their other connections. Items with custom events, changing text, other contents or existing behavior may need review in their own editor. When a choice is incompatible, the builder explains the conflict and leaves the game unchanged. If you edit a recipe-owned item directly in another tool, continue editing it there; the recipe will protect those changes.

Check your version

Try the task before its requirements are met, complete it, and repeat the important action. Use the player’s Save and Load controls to check that progress is remembered. Save your editable project, reopen it and inspect the saved recipe before continuing.