Try a value without changing the project
The console’s set command changes the current test session. It is useful for jumping to a puzzle state without playing the whole opening again. These edits do not change the variable’s starting record.
get score
set score 42
set clock_wound true
set objective "Find the key."
set clues ["note", "key"]
set last_choice null
get last_choice| Command value | Stored type |
|---|---|
| true | Boolean |
| "true" | String containing the word true |
| 42 | Number |
| "42" | String containing two digits |
| ["note", "key"] | Array with two String members |
| null | Blank/null in this Debug Console command |
Make deliberate tests, then restart#
Try setting clock_wound to the quoted String "true" and inspect it with get. It can look similar to a Boolean when displayed as text, but a condition expecting Boolean True should not be built around that String. Restore the correct value or start a fresh preview afterward.
A new preview should return clock_wound to False and score to 0, provided those are still their starting values and you have not loaded a saved game. Save Project does not copy test-session values back into Variable Designer.
A misspelt ID can create a different runtime key when you set it. If get returns <undefined>, compare the spelling with the designer record. Do not keep compensating by setting several slightly different names.
The Debug Console shown here belongs to the editor preview. It is a development aid, not a command-entry interface you need to ship with your game.
