I'm working with multiple conditions that need to be met. I'm making an "endings hunt" game with ten endings, and I need the game to run a series of checks at the beginning to see if all endings have been unlocked. if all have been unlocked, a secret route unlocks. if not, the game is meant to continue as usual.
thing is, the game ONLY WORKS if all the endings are unlocked, for some reason.
I did a test here:
for my first test, I inserted switches that set persistent variables 5 and 7 to ON, ran the game, and the scene "silly" was successfully called.
for my second test, since the game tester keeps track of persistent data, I created variables 12 and 13 (seen above), DIDN'T set their switches to ON, and ran the test. what NEEDED to happen was for the game to display the text "it didn't work bruv."
instead, the game just...didn't do anything. it didn't crash, but it didn't progress.
how do I make the game progress?
EDIT: well, no suggestions worked, so I ed around and found out.
I then repeated that process nine more times. thing is, in order to keep the conditional statements from nesting into each other like a hellish matryoshka of pain, I worked BACKWARDS, and inserted each one of these blocks ABOVE the previous block instead of below like a normal human being.
and BEFORE I did all that, I put this little diddy on the page.
it worked. it's a stupid, bass-ackwards solution. but it works.
thing is, the game ONLY WORKS if all the endings are unlocked, for some reason.
I did a test here:
for my first test, I inserted switches that set persistent variables 5 and 7 to ON, ran the game, and the scene "silly" was successfully called.
for my second test, since the game tester keeps track of persistent data, I created variables 12 and 13 (seen above), DIDN'T set their switches to ON, and ran the test. what NEEDED to happen was for the game to display the text "it didn't work bruv."
instead, the game just...didn't do anything. it didn't crash, but it didn't progress.
how do I make the game progress?
EDIT: well, no suggestions worked, so I ed around and found out.
I then repeated that process nine more times. thing is, in order to keep the conditional statements from nesting into each other like a hellish matryoshka of pain, I worked BACKWARDS, and inserted each one of these blocks ABOVE the previous block instead of below like a normal human being.
and BEFORE I did all that, I put this little diddy on the page.
it worked. it's a stupid, bass-ackwards solution. but it works.