0
Answered

Variable nodes not working?

Amber 4 years ago updated 4 years ago 2

I don't know if this is a real problem, a simulator problem, or just me being a newbie but...

I have this part in my story where the player can ask a character a variety of questions. There's three of them, and in order to make it so that one question can't be asked again and again, I put a variable node at the end of it and an if/then node at the start for redirection.

If the question was "what are you thinking?" Then the variable given at the end would be [spoken]=thinking so if the player tries to go through that sequence a second time, an if/then node at the start would redirect them to the question selection page again. That works perfectly for each question.

The issue starts at a part where once all of the questions have been asked, the three variables collected from each question are supposed to activate an if/then node that gives special dialogue letting the player know there's nothing else to talk about. Here's what it looks like: http://puu.sh/q69nJ/a636adac29.png

Even though everything is all connected, that dialogue does not activate when all the questions are asked in the simulator.

+1
Answered

Hey Amber,


I think you might need to simply add different Variable labels. (I made a copy of your episode 1 and tried all this out there in my temp Ep3 copy.)


I added the new Variable label "spoken2" under the Holding Up section, and added "spoken3" under the Where From section:


"Holding Up" section:



"Where From" Section:



This way, each Variable has it's own "trigger." So when you check that all three are there, it will look for the three separate ones.



I did not touch your Ep1. So, please check out my Ep3 and see if it works as you want. If it does, just make the changes to your Ep1 and delete my Ep3. :-)


Hope it helps!!!


Thank you so much, you're a life saver Michael! It works perfectly now. I was overthinking the whole thing, which is probably why I was stumped for so long. I never thought to just make separate variables for them all! This'll be a good thing to keep in mind for when I want to do something like this again in the future. Thanks again!