Forum Discussion

Emily_Tacoma's avatar
Emily_Tacoma
Community Member
22 days ago

Multiple Points Interaction

Hello,

I have a series of questions we're asking learners and I want them to get a variety of points for each answer. Think Buzzfeed/Cosmo quiz type of thing. For example:

 

Find your Princess.

What's your favorite color?

Yellow (Belle: 3, Jasmine: 0, Catherine: 1)

Blue (Belle: 1, Jasmine: 3, Catherine: 1)

Green (Belle: 0, Jasmine: 1, Catherine: 3)

Red (Belle: 2, Jasmine: 0, Catherine: 3)

What's the best pet?

Dog (Belle: 1, Jasmine: 0, Catherine: 3)

Horse (Belle: 3, Jasmine: 1, Catherine: 0)

Tiger (Belle: 0, Jasmine: 3, Catherine: 0)

 

I created variables for each princess. I created a slide with radio buttons for each answer choice. I programmed the variable add for each selected radio button. I wanted to set it up so the person could change their answer and only the final points would be added to the overall score. I thought I could do this with "Submit interaction" by making it a freeform question, but I'm not getting that to work either.

I also tried building it in Javascript and built some code and went over it with a programmer. While I can get it to work for the submit upon clicking submit, the math isn't working consistently, so I think doing it all in Storyline is the better idea. 

How would you do this? 

TL;DR:

Add points to multiple variables when a learner clicks submit, but not before. Adding across multiple slides. 

Thanks!