Need help with checking conditions: "All must be true"
Posted: Mon Apr 29, 2024 10:45 am
Hi everyone, would love to get help on a murder mystery game I am working on.
What I want to happen
I want the player to find three different clues in the dialogue. When they find all three clues, the true identity of the killer can be revealed through a new dialogue option. If they only find one or two of the clues, the usual dialogue tree appears.
What's actually happening
For some reason, the new dialogue option gets triggered after finding only one clue.
How it's currently set up.
Here is the Conversation tree. I want 2 to trigger when three clues are found.
Here are the conditions for 1:
False condition action: Block
Here are the conditions for 2:
False condition action: Block
Each clue is set to true once the relevant dialogue kicks in. For example, a character will say "I have the weapon" and the script have:
So can anyone help me figure out how to get 2 to trigger ONLY when all three clues have been found? Thank you!
What I want to happen
I want the player to find three different clues in the dialogue. When they find all three clues, the true identity of the killer can be revealed through a new dialogue option. If they only find one or two of the clues, the usual dialogue tree appears.
What's actually happening
For some reason, the new dialogue option gets triggered after finding only one clue.
How it's currently set up.
Here is the Conversation tree. I want 2 to trigger when three clues are found.
Here are the conditions for 1:
Code: Select all
Variable["clue1"] ~= true and (Variable["clue2"] ~= true) and (Variable["clue3"] ~= true)
Here are the conditions for 2:
Code: Select all
Variable["clue1"] == true and (Variable["clue2"] == true) and (Variable["clue3"] == true)
Each clue is set to true once the relevant dialogue kicks in. For example, a character will say "I have the weapon" and the script have:
Code: Select all
Variable["clue1"] = true
So can anyone help me figure out how to get 2 to trigger ONLY when all three clues have been found? Thank you!