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.
- 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.
- 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.
- Read Messages and choices and change the text to fit your game.
- Review what will be added, reused, changed and kept. Resolve any message beside the choices.
- Choose Save recipe, then Save Project at the top to save your editable project file. Use Play Test to try the result.
- Final Reckoning: Use the signal console for the main goal. Talk to the ally and captive, defeat the tyrant, and take the secret relic. Going north ends the story. Using the betrayal seal betrays your ally.
- Final Judgment: Your completed actions decide the ending.
- Rescue Shelter: A safe place for the rescued captive.
- signal console: Use this to complete the main goal.
- secret relic: A hidden legacy to recover.
- betrayal seal: Using this permanently betrays the ally.
- ally: Talk to recruit this ally.
- tyrant: A tyrant with twenty health. Two attacks defeat the tyrant.
- captive: Talk to recruit the captive, lead them west to the rescue shelter, then talk again.
Choices you can change
- Perfect ending: Write the message your player will see.
- Ordinary ending: Write the message your player will see.
- Failure ending: Write the message your player will see.
- Betrayal ending: Write the message your player will see.
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
- USE SIGNAL CONSOLE
- TALK ALLY
- ATTACK TYRANT
- ATTACK TYRANT
- TAKE SECRET RELIC
- TALK CAPTIVE
- WEST
- TALK CAPTIVE
- EAST
- NORTH
Main goal alone produces the ordinary ending
- USE SIGNAL CONSOLE
- NORTH
Missing the main goal produces failure
- NORTH
Betrayal overrides an otherwise perfect outcome
- USE SIGNAL CONSOLE
- ATTACK TYRANT
- ATTACK TYRANT
- TAKE SECRET RELIC
- TALK CAPTIVE
- WEST
- TALK CAPTIVE
- EAST
- USE BETRAYAL SEAL
- 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.