Forum Discussion
Total Quiz Questions
I want to thank Alyssa for the fine video on numbering randomly drawn quiz questions.
You'll notice that although the slide number is available as a variable, oddly the total quiz questions is not and must be hand-coded. Sure it can be a user variable but let's raise the bar.
The results slide creates a set of Built-In variables "Results.xxxxxx". This is the place where the total number of quiz questions would be known to SL. How about adding a new variable "Results.TotalQuestions"?
Thanks for the kind words, Sam!
It sounds like you need a Total Quiz Questions in Scene option in the Slide Numbers feature.
While you could use Total Slides in Scene, this would only work if your quiz questions were in a separate scene.
I'll let our team know about your idea!
- SteveLyneCommunity Member
I agree, Sam. This would be terrific.
- DannyCole-685d0Community Member
Hi Sam,
I have just figured out out how to do this while working on my current project with 5 sections of questions and thought it may be helpful (although a bit late).
1. Create a variable called, “SceneQuestionsTotal” (call it what you like)
Type = Numeric
Default value = 0
2. Then on the Master Slide add 2 triggers
Adjust variable "SceneQuestionsTotal" = project variable "Scene.TotalSlides"
When the timeline starts for each slide
(This sets the static “SceneQuestionsTotal" variable to the number value of the current "Scene.TotalSlides" variable)
3. Directly BELOW this trigger, subtract 1 from "Scene.TotalSlides"
BUT ADD the IF “SceneQuestionsTotal = "Scene.TotalSlides" so it only runs once !!!And make sure it runs AFTER the variable is set first
The master slide triggers panel should look like this:
4. Lastly update the slide master text to show “Question # of %SceneQuestionsTotal%”and you should get: (I have 10 questions and 1 results slide in each scene)
I hope that helps,
Danny
- Tracy_HodgesCommunity Member
Hi Danny,
This is super helpful. Thanks.
- DannyCole-685d0Community Member
Alyssa, Can I add my +1 to this feature request.
thanks
- PeterNeelmeyerCommunity Member
Quiz#.SlideNumber of Quiz#.TotalSlides (equivalent to Scene.SlideNumber of Scene.TotalSlides) would be great.
Hi Peter!
Thanks for sharing the feedback on the type of functionality you'd like to see with Variables in Storyline!
I've included you in the feature report and will update this discussion as soon as we have news to share!
- PeterNeelmeyerCommunity Member
Thanks Steven,
I'm looking forward to it and I also posted a feature request
https://articulate.com/support/contact/feature-request