Skip to reading
Action Lists & Events

6. Make the lever change a fact

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations

Now give Use a persistent result. A message tells the player something happened; a variable lets the rest of the game know it happened.

1. Return to the lever's Verb Actions and find Use Verb - Step 1.

2. Choose Change Variable. Select powered as Variable.

3. Choose Set as Operation. Enter Boolean true as Value.

4. Apply Changes and save. In Test Scene, choose Use and click the lever.

Figure 4. The native inspector uses Change Variable with Set to assign the powered flag.

Use a Boolean for an on/off fact. true, the number 1 and the text "true" are different kinds of value. Later, an If Variable node should compare powered with Boolean true.

Set Variable is available in graphs, text wrappers and the shared GUI list, but not in this native inspector's current picker. Change Variable / Set performs the assignment here. You have not overlooked a hidden Set Variable button.

Page 10 of 189Permalink
Go to page