CYK page count randomly not calculating correctly

Aug 07, 2013

I have reviewed all the posts on using the %onePage% of %pageCount to create a Question 1 of 5 count on my cyk screens.  The quiz is set to draw 5 from the question bank in random order.

This works great until someone fails it multiple times. What is happening is the first number randomly increases. For example: 1 of 5, 2 of 5, 4 of 5, 6 of 5, 7 of 5. The more times they fail, the worse the random first number issue appears. It does not happen all the time. I would hope not one fails the quiz, but it was found in testing so it needs to be addressed.

Here is how I have the triggers for the failure results and the applicable Storyline screens. Any help would be greatly appreciated.

7 Replies
Josh Uhlig

I believe this is happening because of where you have the trigger to adjust the onePage variable.  It is set to adjust the variable at the start of each question. 

This is just a guess, but I'm betting Storyline handles a question bank such that it still visits each slide even though it doesn't display the content.  As a result, it still completes any triggers that are at the start of the timeline.  Since that is where your adjust variable trigger is, it adds 1 to onePage even though it never shows that specific question.

The problem is - If not there, where do you put the trigger so it works both when taking the quiz and in the quiz review.

Josh Uhlig

I suggest a different approach. 

  1. Remove all the triggers that change the value of onePage with the exception of the one that resets it to zero when they click the Retry Quiz button - but change the value to reset to 1 instead of zero.
  2. Set the initial value of onePage to 1
  3. Add a unique number variable to each question (7 unique variables) 
  4. For each question, adjust that unique variable to equal onePage when timeline starts with the condition that onePage is not equal to 6
  5. Add triggers to each of the question feedback layers (correct and incorrect) to add 1 to onePage when the continue button is clicked.
  6. Change the variable displayed at the top of your questions to display the new variable instead of onePage

This should do what you need it to.  I've attached the sample with my changes.

Ayrus 123

Hi Josh,

Thanks for your sample file it taught a lot. I tried the assessment with 10 random question, the question numbers are displaying fine but while reviewing the quiz, upon clicking the previous button the question number is not decreased instead it is incremented.

I do not know how to control the question number while clicking the previous button.

Kindly help.

This discussion is closed. You can start a new discussion or contact Articulate Support.