Skip to reading
The Dialogue Designer

24. Test conditions with real starting values

Edition 0.86.3.4

Build branching conversations with choices, conditions, actions, timed responses, voices, portraits and custom windows.

Download PDFView PDF page

1. Start a fresh preview with archive_key_given false.

2. Reach topics. Ask Key should appear; Ask Archive should not.

3. Choose the key request and continue past Elias’s reply.

4. Check real inventory for one Archive Key.

5. At topics, Ask Key should be absent and Ask Archive should appear.

6. End the conversation and start it again. The key request should remain absent.

Also test the record with archive_key_given initially true. This is useful for checking a later-game conversation without replaying every earlier scene.

The simple condition supports one variable-equality check. For a rule such as “carrying the key, trust at least three and the guard has left,” calculate a Boolean variable in a script, then use that Boolean as the condition.

An undefined variable is not a useful false flag. Define the variable with its intended type and initial value so the condition has a predictable starting state.

Page 28 of 77Permalink
Go to page