Make a choice depend on two values
Adventure Studio tutorial
STUDIO 0.86.4.7 • LESSON 3 OF 3
The porter will offer a test only when pressure is at least 80 and the alarm points to 6. A second reply keeps the conversation usable at any setting.
1. Open the exact choice
Open Instrument-Room.pca3d. In Dialogue Designer select Instrument check, node choose, and the option “Test the instruments.” Open Conditions… beside that option. Inspect the existing rule. When building it yourself, choose a Variable condition, variable pressure, comparison gte and numeric value 80.
2. Require both comparisons
Use Group with and, then add a second Variable condition for alarm, comparison eq, numeric value 6. An and group requires both rows. Use or when either row should be sufficient. A negated condition reverses a valid result. A missing variable or target needs repair.
3. Test the boundary before applying
Set the preview operands to pressure 79 and alarm 6. Click Test preview and expect False. Change pressure to 80 and expect True. Finally set alarm to 7 and expect False. Click Apply to store the rule. Keep “Come back later” available as a fallback.
The porter’s two comparisons inside an AND group. Each row has a preview operand.
WHAT TO CHECK
Type the thresholds as numbers. A text value such as “80” can fail a numeric comparison. The preview fields let you test the rule without changing the saved game variables.
Related original lesson | p. 12 Tutorial edition 0.86.4.7
