6. Make the lever change a fact
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.
