Fresh eyes needed for a weird bug in custom quiz

Oct 11, 2017

Hi folks,

I've been wracking my brain on a weird bug in a customised quiz I'm building and could do with a fresh pair of eyes. 

First, some context ...

My client has asked me to make an automated assessment for a course. It includes a lot of interactivity that the regular Storyline quiz templates don't supply, so I've had to create a lot of it from scratch. The client also wanted a means for the user to review the questions afterwards if they failed so they could see where they've gone wrong. Because of the customised questions I've built, I wasn't able to the use the Storyline template for reviewing questions and had to make my own. It works absolutely no problem, except on one question (Question 7) where it keeps adding points to the final score whenever the user clicks next to go to the next question. 

I have tried everything I can think of to fix this. I've recreated the screen, checked through the triggers one by one, made it into a multiple choice rather than a numeric entry. The screens are set to resume when revisited, so I switched it to automatic to see if that helped at all and it didn't.

Part of me thinks it might be related to Question 6, where the score is variable as the user gets 2 marks per correct answer and -1 mark for an incorrect answer. The score it adds during the review is variable; sometimes it's 4 or even 3, which is why I wonder if it's Question 6 causing the issue. I've looked at the screen and it's triggers and cannot see the issue. Maybe the ordering is wrong? I'm not sure, but that's the next thing I'm going to look at.

I've been looking at this for two days now and not getting anywhere. As you can imagine, I'm starting to get a little frustrated. If anyone can help, I'd really appreciate it.

9 Replies
Brian Allen

So, on question 7, when reviewing the questions, that's when additional points are being added to the final score, correct?

If this is the case you may consider adding a "Q7visited" variable to your question 7 slide, T/F variable with a default value of "false".

The first time a user visits the Q7 slide, the "Q7visited" variable will be false. Set your trigger(s) that add points to the final score to include a conditional check to only add points to the final score if "Q7visited" = "false".

After the points are added, adjust the value of "Q7visited" to "True".

Each time after this point, when the Q7 slide is revisited for review, no points will be added because of the condition you added.

Gemma Nunn

Hi Brian,

Thanks for your suggestion. I tried it and it didn't work. :( 

I took out Q6 and tested the file again and can confirm that Q7 is definitely the issue. The odd thing is that depending on the answer the user inputs, the number of points added changes. For example, if the user has entered the correct answer (63) then it added 3 points, which is the number of points that the question is worth. If the user enters the wrong answer, such as 12 then it add 5. If they enter 47, it adds 4. For 87, it adds 3. Very bizarre! I tested this out with Q6 deleted. 

Brian Allen
Gemma Nunn

When clicking the next button on Q6, 4 points were added to the final score during the review.

You're going to need to figure out how to make sure that points are only added to your final score on the first visit to the question slide. The way I always do this is to create "visited" variables for each slide, then add conditions to my scoring triggers to only add the score if the slide has not been visited.

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