Forum Discussion
Adjust variable according to slide number
Hi!
I'm building a very long quiz in Storyline and I would like to display the question number on top of each page (ex.: 1/50, 2/50, 3/50, etc.) I've created a number variable, with the default value of 1. This works fine for the first question but I'm wondering how to set a trigger to change my variable automatically, according to the slide number. Is this something possible?
4 Replies
- WaltHamiltonSuper Hero
When you say slide number, it sounds to me like you mean which question is this. If you want to depend on the number the system uses for the slide (1.2, 1.15) that will be an entirely different matter, which Judy answers below.
You might put both the reference and the trigger on the master you use for each question where you want the number.
Start the variable at 0, and write a trigger to adjust the variable (add 1) when the timeline begins on the slide.
If there is some manner in which the learner can return a second time to the same slide, you have to take steps to keep the count accurate.
- JudyNolletSuper Hero
Walt answered while I was preparing the attached demo. It uses the Project.SlideNumber and Project.TotalSlides variables on the Master Layout for Question slides.
The Intro slide and the Results slide were excluded from the slide count.
This means the variables will numbers only the question slides.
Here's more info about adding Slide Numbers: Slide Numbers in Storyline 360 - E-Learning Heroes (articulate.com)
Here's more info about variables: https://community.articulate.com/series/articulate-storyline-360/articles/articulate-storyline-360-user-guide-how-to-work-with-variables
- MauraSullivan-9Community Member
Judy,
I had no idea that you could exclude slides this way. Thanks!
Does this still work if the questions slides are in a draw, i.e. would the numbering match the order that they are drawn instead of the actual slide number in the scene?
- JudyNolletSuper Hero
MauraSullivan-9: I'd guess it would work with a question bank. But I've never tried that, so I don't know for sure. If you're interested, you could prep a quick test to see if it works.
If you do that, it'd be great if you reported the results back here, so they'd be available when others find this discussion.
Related Content
- 4 months ago