Question Count Variable Reset
Feb 17, 2015
Hello all,
I was working on designing a quiz on SL2 .
The questions are drawn randomly from the question bank.
I wanted to show in the result slide that how many questions the learner has got correctly at last. If he or she fails the passing score, he will retake the quiz till he or she passes.
I was able to set the count variable to record the number of correct questions (I set Add 1 trigger to the Continue button on the Correct layer.) However, I cannot reset the Question Count Variable to zero on the result slide. I tried to set the trigger to make Question Count Variable = zero when the learner click on the Retry button in the result slide (the button is on the base layer though). But when I go through the quiz again, the Question Count does not start from but whatever was left from the first round answers.
Do I miss anything here?
Thank you!
6 Replies
Can you share your .story file here so that we can take a closer look?
Hi there,
Yeah I will save as a plain one as upload it soon! :)
Thank you!
Hi Michael,
Attached is what I did for the project (kind of).
I have 2 variables QuestionNumber and CorrectCount.
The CorrectCount is not working well.
All the answers for the questions are A
Thank you very much!
Hello Zoe,
I did not see a trigger for the QuestionNumber variable added to the button on the results slide. I added this, and also moved the QuestionNumber and CorrectCount above the Jump to slide trigger.
It seems to be working now. Let me know if the attached file is what you are looking for.
Yeah Emily!
It worked!
So only by moving the sequencing of the triggers did make it work?
Thank you very much!
Hi Zoe!
Glad to help!
The order of the triggers is important, you can read about that in the link I shared above. Typically if you have a variable trigger and a Jump to trigger on the same button, the variable change should be on top.
This discussion is closed. You can start a new discussion or contact Articulate Support.