Forum Discussion
Trivia Game - Using Variables and JavaScript to remove answered questions from the deck.
I have changed the variables to remove the 4th question in each section and removed the questions, but the character continues to come up after questions have been asked and at that point, the user has no further options (i.e. continue button, etc.)
- MathNotermans-93 years agoCommunity Member
After some digging to understand the logic of it, the solution was easy. To help you solve this kind of things yourself i am gonna explain what i did.
I added a textfield to the MasterSlide referencing and showing all variables i thought were important in the setup.
All questions i added an asterisk * behind the proper answer, so i could test and check off all quickly without errors... and having to redo questions ;-)
Then i published and tested the Storyline. I noticed that when a question was answered correctly 1 was deducted from a variable. Depending on categorie either QR1,QR2,QR3,QR4 or QR5. And that was the clue. In the Storyline those variables were hardcoded to 4. Because you removed 1 question from the categories those didnot match anymore.
So your solution is simple. Change those variables to 3 and its working fine.QR1,QR2,QR3,QR4 and QR5 need to be 3.