Forum Discussion
Tracking a Running/Evolving "Score" Within a Multi-Questioned Scenario
Hi,
I'm trying to do something that I bet Storyline can do but that I also can't quite figure our how to do.
I'm building a scenario with various decision points for the learner. Each of those decision points are in the form of a multiple-choice question.
What I'd like to do is have all learners start the scenario with a score of zero. Every time they answer one of the questions correctly, they'd get a point. At the end, they'd have a total score based on the number of points they earned. And, ideally, I'd give something like different messages to people at the end based on their score (example: 1-2, "room for improvement," 3-4, "pretty good," and 5-6, "wow you're a superstar").
I feel like I should be able to do this but creating a variable with an initial value of 0, and then adding triggers to the correct options of every MC question that adds 1 point to the variables current value.
Can I do what I'm trying to do and, if so, how?
Thanks!
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.
12 Replies
- KendalRasnake-1Community Member
Hi,
What if you made each quiz question worth a point and then on the quiz you selected the checkbox "only score questions answered."? Then, the results slide, as well as the quiz points variable, will only have the correct amount of points that the user earned.
Then, you can create a graph at the end with different achievement levels. Put an arrow next to the graph with different states depending on where you want the arrow to point. Change the state of the arrow based on the quiz score variable with triggers.
If this answers your question, please mark it solved. Otherwise, feel free to ask a follow-up question.
- JeffDalto-91bd2Community Member
Kendal, thanks for writing back.
I should note this is NOT a QUIZ using any preformatted quiz-creation tool. It's something I'm making from scratch in a variety of screens in Storyline.
- SilverfireCommunity Member
Hi, you can do that by creating a variable for points. You can configure the correct answers to add one point to that variable (with Javascript). Then, with the last slide, create triggers that display the appropriate text box. All text boxes would initially be in the hidden state, and only the trigger that corresponded to the current score would make one visible.
- JeffDalto-91bd2Community Member
Yes, this is what I'm trying to do, but I was thinking there would be a simple way to do it within the existing tools of Storyline so the variable can be modified without me having to learn/create Javascript.
- SilverfireCommunity Member
As JudyNollet has mentioned you can use well-crafted triggers. If you end up using a lot of those it gets difficult to read and I find dipping down into code to be easier. Anyhow, looks like you've got a lot of good advice below on doing this.
- JudyNolletSuper Hero
I think KendalRasnake-1's solution (using graded-question slides) is the easiest. You can set up the graded-question slides (standard or freeform) and the associated Results slide however you want. For example, instead of Success and Failure layers on the Results slide, you could have layers that correspond to different levels (for example, if they score 0-3, 4-7, or 8-10). Set up your own triggers to show the appropriate layer based on the user's points.
It is also possible using your own variable. You don't need Javascript; just add the appropriate point(s) when the user submits the correct answer. Just be sure there's no way for them to submit a given answer more than once, because that would impact the score. On the custom results slide, you could show the appropriate text box based on the variable's value (like Silverfire suggested), use an object with different states, or put the feedback on different layers.
- JeffDalto-91bd2Community Member
Thanks, Judy,
I'm trying to NOT use any quiz-creation tool, so that's why Kendal's suggestion doesn't work for me.
I AM trying to do something like what you're talking about in the second paragraph. My problem is, when you say "just add the appropriate point(s) when the user submits the correct answer," I don't quite know how to do that. But that's exactly what I'm trying to do--begin with a "SCORE" variable that defaults to 0 and add 1 point to that SCORE variable when the user selects the correct answer.- JudyNolletSuper Hero
Since Kendal already replied to this, I added another reply to the main thread (so it will be more visible to those who find this discussion in the future).
- KendalRasnake-1Community Member
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-91bd2Community Member
KendalRasnake-1
Fantastic, thanks!
I was looking for the ability to do this but couldn't find it.
I entirely understand. Thanks for your help and I appreciate the addition of the image.
Cheers.
- JudyNolletSuper Hero
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:
- JeffDalto-91bd2Community Member
Thanks all for the help, appreciate it. Have great days.
Related Content
- 10 months ago