Hello there,
I'm having some fairly basic issues with setting variables and then calling the value late in the game. I've checked the Google group and read the reference a thousand times, but I still apologise if I have missed something obvious.
(Using Twine 1.4.1)
So, I set a variable at the top of my second passage (the first passage is a title page, but maybe I should set my variables there?"
<<set $variable1 to "0">>
Later on I [
<<set $variable1 to "1">>
.
I then want to call the variable with an <<if>> function:
<<if $variable1 is "0">>
text 1
<<else>>
text 2
<<endif>>
However, even if the player has had variable 1 set to 1, "text 1" is still appearing. Surely, as they do NOT have a variable value of "0", "text 2" should be appearing.
What am I doing wrong?
Thank you for your help.
Comments
It's an insane workaround, but I don't have time to figure out why and I'm just going with it!