Getting the individual question score points on submit (to store as custom variable)

Feb 29, 2024

Hi,

I've tried searching but I can't find anywhere what the variable is for the score points of an individual question on a quiz. Possibly I'm searching for the wrong thing.

I need to be able to store the choice a user makes and compare it to the previous question choice. I can't use the built in variable (MyQuiz.ScorePoints) as I can't reset it to 0 on each new question. I don't actually need a total score at the end of the 'quiz', just to know the lowest point choice of all the questions in a quiz. I can do all the logic etc I just can't find how to grab that variable.

I don't want to have to set a trigger for each selection on every question, simply grab the selected choice on submit and process it.

Thanks in advance

3 Replies
Judy Nollet

It sounds like you're using Multiple-Choice questions that are scored By Choice (that is, the correct response receives the full amount of points, and some responses receive partial points). 

As Phil said, if you want to know the score of each question, you'll have to use custom triggers and variables. 

The attached file demonstrates a way to get the points.

  • Create a number variable to track each question. 
  • On the Correct layer for each question, put a trigger that sets the value of the associated variable to the total amount of points. 
  • On the Incorrect layer for each question, put triggers that set the value of the associated variable to the appropriate amount of points based on which answer was selected.  

If the questions don't provide immediate feedback (that is, they don't have Correct and Incorrect layers), then put the triggers on the Submit button.

  • Be sure the set-points triggers come before the Submit Multiple Choice trigger. (Triggers run in order, and triggers can't run after the program has jumped to another slide. When there's no immediate feedback, the Submit trigger jumps to the next slide.)
Gary Dickenson

Thanks, I get this (am using radio buttons but that's irrelevant) it seems a hell of a lot of work to get a piece of data that's already there as the choice point value is passed to myquiz.ScorePoints at the point of submit and yet it's not accessible in any way?

If I have a 20 question quiz with 10 choices I need to do 200 triggers instead of what should  be10...  and then all the variables to make that work!