Forum Discussion
Tracking a Running/Evolving "Score" Within a Multi-Questioned Scenario
- 1 month ago
Hi Jeff,
Just create your Score variable. Then, any time you want a point added, such as when a user clicks on something, then add a trigger to add 1 to the Score variable.
In this image, you can see the Trigger will add the value of 1 to the variable named "Progress" when the user clicks on a button.
If you are creating your own buttons and not using the built-in quiz feature, be careful that a user might click the button, click away, and then re-click a button as they make their final choice. This would cause the variable to get 2 points instead of 1. Therefore, you might need to use a Submit button that would adjust the Score variable and move to the next slide.
For example, your Trigger might be Adjust Variable, Add value 1 to Score, when the user clicks Submit, on the Condition that the correct button (related to the correct choice) is in the Selected state.
If this answers your question, please mark it solved. Otherwise, feel free to ask a follow-up question.
JeffDalto-91bd2: I see Kendall has already jumped in to explain how to adjust the score variable.
Yes, there can be issues when adjusting a number variable. You have to ensure that the trigger doing the arithmetic won't run more than the one time it should. So I recommend triggering the calculation when the user clicks whatever they click to advance to the next slide.
For example, add 1 to the variable when the user clicks the Next button with the condition that the "correct" item = Selected.
Or, if they jump to another slide as soon as they click an option, adjust the variable when they click the "correct" one.
In either case, be sure the trigger to adjust the variable comes before the trigger to jump to another slide. (A trigger can't run if the program has already left the slide.)
These resources might help:
Related Content
- 10 months ago