Trouble with triggers and variables

Oct 05, 2021

Hi all! Fairly new to Storyline, having a bit of trouble with something. I have a module where I want the learner to navigate through 6 sections in whatever order they want before continuing onto the next portion. So, on a navigation page I have six buttons that will lightbox one of the sections. I also have a set of 6 boolean variables tracking which buttons the learner has clicked on. They're set to False initially and have a trigger set to change them to True when the learner clicks the corresponding button.

Furthermore, there's a layer with a button to continue that should appear once the learner has viewed all six sections. To do this, when the learner clicks on any button, I have triggers checking if the other 5 variables are already set to True. If so, it should show the other layer.

Now, the problem is that the layer isn't showing up even after all 6 buttons are clicked. Moreover, while I was troubleshooting this, I tried testing the individual trigger/variable pairs by setting up a test layer that should show up when any button is clicked, but even that doesn't seem to be working (not included in the file here). I'm sure I must be missing something obvious here; I'd appreciate any help.

1 Reply
Maria Costa-Stienstra

Hi, Jonathan, and welcome to E-Learning Heroes! ✨

Thank you for sharing your .story file!

There are different ways to achieve what you're looking for, but I usually suggest the easiest one: using built-in states instead of variables.

Since all your buttons already have a visited state, you can use that information to trigger when to show your Continue layer:

Windows 10 (1) 2021-10-05 at 4.46.53 PM

You can disable or delete all the triggers, except the Lightbox ones, then add one that says Show layer Continue when the state of all buttons is Visited:

Windows 10 (1) 2021-10-05 at 4.48.01 PM

 

Let me know if this works!