Skip to reading
The Variable Designer

21. Finish with one complete test pass

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

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.

Source table from 21. Finish with one complete test pass, page 36
CheckExpected result
Fresh gameclock_wound False; score 0; attempts 0; objective starts with the workshop instruction.
First unconditional UseFlag True, score 10, attempts 1 and the updated objective.
Second unconditional UseScore 20 and attempts 2. This is the early test, not the final reward rule.
Fresh game with the visual guardFirst Use awards 10; a later completed Use shows “already running” and leaves score at 10.
If Compare at 0, then 10The failure message at 0; the success message at 10.
Append one clueThe Array gains one member. It does not become an inventory award.
Select Clock diagram in the list boxlast_choice is diagram; the source Array remains the list of available clues.
Change to another roomThe same current values remain available.
Save at 20, change to 999, reloadA fresh get query reports the restored 20.
Restart without loadingThe 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.

Page 36 of 37Permalink
Go to page