3. Make your first yes-or-no variable
A Boolean has two ordinary values: True and False. Use it for a fact with two states, such as a solved puzzle, an unlocked door or a conversation the player has already heard.
1. Check that clock_wound does not already exist. Reuse that record if it does; otherwise click Add New in Variable Designer.
2. Set Variable ID to clock_wound and Name to Clock Wound.
3. Choose Boolean for Value Type.
4. Leave Leave Blank At Start off. Leave Initial Boolean Value unticked, which means False.
5. Set Database Folder to Workshop, click Apply Changes, then Save Project.
Figure 3. The new record filled in before Apply Changes. An unticked initial Boolean is False; it is still a real value.
Read the question the same way every time#
The ID clock_wound asks “has the clock been wound?” False means it has not; True means it has. Keep that meaning consistent throughout the project. A second variable named clock_not_wound would make every condition harder to follow.
After applying, select a different record and come back. Clock Wound should still have type Boolean and an unticked starting value. The selector should now show the new name and ID.
False is not blank. It answers the question with “no”. Blank/null means no answer has been stored yet. Chapter 6 shows when that distinction matters.
