24. Test conditions with real starting values
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.
