Subtracting points during a quiz

I am creating a quiz with these feature:

-The user begins the quiz with 100 points.

-When the user clicks and submits a correct answer, the point value (it could stay 100 all the way through)stays the same.

-When the user clicks and submits an incorrect(s) answer, 5 points is deducted from the overall score.  That score would be continued onto the next question.

(For example, if I am the user and I correctly answer the first question, I stay with 100 points.  If I answer the second question incorrectly, I woul lose 5 points.  I would begin with my third question having 95 points left.)

I hope this is clear to follow.  I have tried using variables and conditions within my triggers, and they aren't doing exactly what I want.  Thanks for any and all help!!!!

8 Replies
Ashley Terwilliger

Hi Evan and welcome to Heroes!

Variables is definitely the way to go with this set up, and it may help the community guide you if you can share what you've already set up in terms of the variables and logic behind it by posting the .story file here with us. Additionally, I wanted to point you to this thread where there are some screenrs from David Anderson describing how to set this up, and there is an additional link to another example by Steve Flowers to ensure that score will go to your LMS. 

Evan Laube

Thanks for the link Ashley.


I have mimicked what David had created, but made a template for myself to use for the final product (two multiple choice, two multiple response, and two pick one). 

Like I stated above, I want to have a decreasing point total on the screen, and when the user answers a question incorrectly, the point total drops.  Currently, this is not happening.

I don't want to give much more information, as I don't want to overwhelm anyone with my request.  If need be, I certainly will divulge more.

Evan Laube

Hi Ashley-

I have created an updated version of my example.  I believe I am close to achieving all I need for this quiz, but for one thing.  I have achieved how to decrease the numbers on the results slide, but how could I show that on every slide.  Like I stated above:

-The user begins the quiz with 100 points.

-When the user clicks and submits a correct answer, the point value (it could stay 100 all the way through)stays the same.

-When the user clicks and submits an incorrect(s) answer, 5 points is deducted from the overall score.  That score would be continued onto the next question.

(For example, if I am the user and I correctly answer the first question, I stay with 100 points.  If I answer the second question incorrectly, I woul lose 5 points.  I would begin with my third question having 95 points left.)

I do know I'm close, but this is the one sticking point.  Any help would be great.

Thanks

Evan

Ashley Terwilliger

Thanks Mike for sharing Evan's file here.

Evan, I took a look at your file, and the part that is missing on the individual slides is something to update the variable Total based on the choices, so for example since your questions are in a particular order, the easiest way would be to "Adjust variable" total score based on the condition that the wrong answer choice's state is Selected such as in the image below:

Evan Laube

Thanks Ashley, but I actually got it to work 5 minutes ago!! 

All I did was replicate the triggers when the user gets an answer incorrect, placed the copy on the "Incorrect" layer, and said "Add Subtract5Points to Total" when the user clicks on the button.  Its hard to explain, but if you view the attachment, you will see what I have created.

Thanks for the help!  You guys are an excellent resource for this newbie!!

Evan