Newbie having trouble with variable to keep track of student score

Mar 16, 2014

Brand new to StoryLine. Trying to create short presentation with several slides in one scene. Each slide (so far) is drag and drop using freeform on a blank slide, rather than the Quiz slides templates. I created a numeric variable called StudentScore that I want to display at the bottom of each slide and update based on if they get the drag and drop activity on the slide correct (+20) or incorrect (-10). Each slide can be done unlimited times and does not allow student to move on to next slide until they get it correct.

I have entered text box at bottom of each slide with Your Score: %StudentScore%. I have set trigger for when student clicks Next arrow (shown on CORRECT layer  after submit) to add 20 to StudentScore. I have set trigger on incorrect layer to subtract 10 from StudentScore when student clicks TryAgain.

When I preview individual slides, it show correct math and correct value.

But when I preview entire scene, each successive slide show StudentScore to be zero, rather than carrying forward the ultimate score from prior slide. I thought variables were global, rather than local. Can anyone help?

4 Replies
Rebecca Fleisch Cordeiro

Hi Bob,

Welcome to the community and to Storyline.

Here's a quick example I threw together. BTW, I do have one difference in how I applied the variables. I set it up so the 10 points is added when the Correct layer starts. That way you don't need to worry about also subtracting on the Try again layer. That may not be what you want, though.

I didn't type in directions, but you need to drag the small shapes onto the larger matching shapes.

Please shout out with any questions.

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