Forum Discussion
NickGregory-325
2 years agoCommunity Member
Revisit Quiz
Hi all I just need to clarify something.
I have a course which has a quiz at the end.
The user is allowed to have 2 attempts and if they fail on the second one they have to restart the course.
...
JudyNollet
2 years agoSuper Hero
"Automatically decide" means Storyline will either "Reset to initial state" or "Resume saved state." What it does depends on what it thinks is the best option for the slide.
- In my experience, "Automatically decide" is the best option for Question and Results slides. That will let the built-in functionality (taking, reviewing, re-trying) work correctly.
As for forcing the user to retake the course if they fail the quiz 2 times: to do that, you need to remove the built-in Menu from the Player. Why? The Menu can be Restricted, which requires the user to go through the slides in order. But that still allows the user to click the Menu to revisit any previously viewed slide. Thus, by the time they get to through the quiz, they can jump around the entire course.
You'll also need to use variables and trigger conditions to ensure they go through the course again. For example:
- Use a number variable to track how many times they fail the course. This is as simple as putting a trigger on the Failure layer that adds 1 to the variable when the layer's timeline starts.
- Disable the Retry button when the variable = 2.
- Enable/show a "review course" button when the variable = 2. Its trigger should go to the start of the course.
- Use a T/F variable to track whether the user is done reviewing the course. Give it a default value of False. On the slide right before the quiz, set the T/F variable to True with the condition that the number variable = 2.
- I also recommend programming the slide just before the quiz so the NEXT button goes to the Results slide when the user is reviewing the course (i.e., the variable = 2). That will prevent the user from stepping through the questions without being able to answer them.
- On the Results slide, enable the Retry button with the condition that the T/F variable = True.
- You'll also need triggers to reset the variables, so the above process will start over.
- Most importantly, you'll need to do a lot of testing to ensure it all works as desired.