Okay, so I’ve done boolean variables before with past games and it’s worked, and I’ve triple checked my code this time. I’m not really sure what I’m missing. Can someone please help?
It’ll be much easier to explain with a visual, so here are some pics I took of my laptop, on the desktop app version of CSIDE:
So here is what the code looks like at the beginning when I created the variables. ^
^ Here is when I set the variables. It’s the first choice in the novel and establishes the MC’s feelings towards a situation for the rest of the game.
THIS IS WHERE THE ISSUE STEMS FROM. I chose the second option in testing, the one that sets society_angry as true.
^ Here is where I implemented the “if” command, to personalize how the MC reacts based on their feelings established in the first choice.
^ And here is what happens when I run the project. According to choicescript there are no errors, but when I chose the option that’s supposed to set society_angry to true, it shows the dialogue that’s meant for the (society_excited true) variable. No matter which option I choose in the first choice to change the boolean variable, it always displays the society_excited one. I assume this is because it’s the first *if command in code, though I don’t know why it’s not registering the other variables.
I wondered if it’s because I don’t include a “false” variable, though I don’t see how I could make one work in this scenario. There is no way the variable could be false, there’s only other feelings set to true that the MC could experience.
I have been trying to figure this out for days. I’m fairly new to choicescript, so I have been researching relentlessly trying to find what I’m doing wrong, but I can’t figure it out.
Please let me know if this is in anyway confusing, as I would love to explain it further. Whatever it takes to fix this, please!!