Forum Discussion
Can I make a quiz result control object state?
- 3 months ago
You could track whether questions were answered correctly via using T/F variables.
- For each question, create a T/F variable with a default value of False. That will represent an incorrect answer.
- On each question, add a trigger that changes the associated variable to True with the condition(s) that the correct answer(s) = Selected. This trigger should run when the user submits their answer. Be sure it comes before any trigger that jumps to another slide (for example, the standard Submit interaction trigger on question slides).
- On your results slide, use the value of the T/F variables to control whether the associated padlock changes opens or not.
t’s worth the effort to learn about variables and trigger conditions, because they provide the real power in Storyline. Here’s more information:
- This post provides an overview of variables. It also links to numerous resources. The Value of Variables | Articulate - Community
- The User Guide articles about triggers include some about conditions. Storyline 360: Working with Triggers | Articulate - Community
I just tried it out, and - as you said it would, it works Thanks 😊
I am already using variables, but had not connected quiz results and -answers with new variables.
The new challenge for me is the number of variables. I am now using 43 different variables and this will be at least 3 times as many when I am finished, but it will be an amazing escape room game 👍
That's a lot of variables! Be sure to give the variables—as well as the objects and layers— meaningful names. That will help a lot with programming and troubleshooting.
Good luck with the project!