21. Finish with one complete test pass
Before moving on to the next designer, run through a small test with known results. Do the unconditional-action test first, then replace it with the guarded version. Mixing both implementations makes the expected score unclear.
| Check | Expected result |
|---|---|
| Fresh game | clock_wound False; score 0; attempts 0; objective starts with the workshop instruction. |
| First unconditional Use | Flag True, score 10, attempts 1 and the updated objective. |
| Second unconditional Use | Score 20 and attempts 2. This is the early test, not the final reward rule. |
| Fresh game with the visual guard | First Use awards 10; a later completed Use shows “already running” and leaves score at 10. |
| If Compare at 0, then 10 | The failure message at 0; the success message at 10. |
| Append one clue | The Array gains one member. It does not become an inventory award. |
| Select Clock diagram in the list box | last_choice is diagram; the source Array remains the list of available clues. |
| Change to another room | The same current values remain available. |
| Save at 20, change to 999, reload | A fresh get query reports the restored 20. |
| Restart without loading | The designer’s initial values return. |
A useful habit for the next puzzle#
Write down the question first: “Has the player done this?” Choose the type that answers it, create a stable ID, and decide which action is allowed to change it. Then add one check that proves the rule works both before and after the change.
For the workshop clock, that is a False starting flag, one successful reward and a True branch for every later visit. The same pattern works for a drawer already searched, a clue already examined or a conversation already completed.
Apply the designer edits, save the project and keep a fresh-game test separate from a saved-game test. Once those agree with your intended rules, the variable has a clear job in the game.
