Skip to reading
The Variable Designer

Try a value without changing the project

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

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.

Code example
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
Source table from Try a value without changing the project, page 19
Command valueStored type
trueBoolean
"true"String containing the word true
42Number
"42"String containing two digits
["note", "key"]Array with two String members
nullBlank/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.

Page 19 of 37Permalink
Go to page