Forum Discussion

LizDunn's avatar
LizDunn
Community Member
3 years ago

Collecting Items & Displaying results

What I'm wanting to do: An online course with multiple scenes (4-6) and throughout these scenes are 'tid-bits' the user has to click on to learn a new 'tid-bit' of information. I don't want these to be mandatory to go through the course, but more of a challenge to collect as many as they can. 

At the end, I'd like a slide that shows "You've collected X/Total number of 'tid-bits!'" 

Is there a way to have Storyline keep track of how many 'tid-bits' are collected through the course? 

Any insight would be much appreciated! 

    • Create a number variable with the default value of 0. For example, call it "tidbit_Total." 
    • For each tidbit, create a T/F variable with a default value of False (indicating that it hasn't been viewed). For example, call these "tidbit1," tidbit2," etc. 
    • For each button a user can click to view a tidbit, add a trigger that adjusts the corresponding T/F variable to True (indicating that they viewed that tidbit). 
    • At the end, use a series of triggers that add 1 to the tidbit_Total variable with the condition that a given T/F variable is True. You'd need one trigger per tidbit. Those would look something like this:

    Note: Each item with a dotted underline in the Trigger Wizard can be clicked to change it to something else. For example, the default action when adjusting a variable is to Set it to a specific value. But it you click Set, you'll see other options. For number variables, those options include math operators like Add.

    • At the end, insert a variable reference to show the final amount of tidbit_Total to the user.

    If you aren't familiar with trigger conditions and variables, it's worth the effort to learn about them. They provide the real control in Storyline. Here's some more info: