Skip to reading
The Variable Designer

Set the condition and connect both branches

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
Source table from Set the condition and connect both branches, page 21
NodeSettings
If VariableVariable Clock Wound(clock_wound); Equals True; Blank / null off.
Set VariableVariable Clock Wound(clock_wound); Value True; Blank / null off.
Change VariableVariable Score(score); Operation add; Value 10.
First Show MessageThe clock is already running.
Second Show MessageThe clock starts ticking. Score: $$score.

1. Connect On Interact’s NEXT output to If Variable’s FLOW input.

2. Connect If Variable’s TRUE output to the “already running” message.

3. Connect its FALSE output to Set Variable.

4. Connect Set Variable → Change Variable → the “starts ticking” message.

5. Use Auto Arrange or move the nodes until you can follow both paths. Save the project.

Figure 16. The condition compares clock_wound with Boolean True. The TRUE and FALSE sockets lead to different actions.

If the variable is False, the equality test is False, so the game follows FALSE and performs the reward. After Set Variable changes the flag to True, later calls follow TRUE instead.

Page 21 of 37Permalink
Go to page