Skip to reading
The Variable Designer

Add points and update the objective

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 illustrations

Under the Use action group, Add Next Action appends another step. Actions run from top to bottom. Build the sequence below, apply the Inspector and save the project.

Source table from Add points and update the objective, page 16
StepActionSettings
1Set VariableVariable clock_wound; Value true.
2Change VariableVariable score; Operation add; Value 10.
3Change VariableVariable attempts; Operation add; Value 1.
4Set VariableVariable objective; Value "The clock is running."
5Show MessageText: You wind the clock. Score: $$score. Attempts: $$attempts.

Figure 13. Change Variable adds to the score. It does not replace it with the reward amount.

Values in these general action fields#

Source table from Add points and update the objective, page 16
Intended valueEnter in an action-list Value field
Booleantrue or false
Number10 or 2.5
String"The clock is running."
Array["clock diagram", "winding socket"]

The table uses JSON value notation. Ordinary unquoted words can fall back to text, but quotes make String values unambiguous here. For Show Message’s dedicated Text / Message field, type the sentence normally. For null, use the explicit options described in Chapter 6.

Page 16 of 37Permalink
Go to page