Trouble with variables
Jun 16, 2017
By
Rida Zehra
I am having trouble with triggers and variables.
My Slide 1 has two buttons. Button A and Button B, each button with a custom visited state (a green tick).
Clicking on Button A opens Slides 2 and 3.
Clicking on Button B opens Slides 4 and 5.
I want to use triggers so that when the user clicks on Button A AND has gone through each of the slides 2 and 3, only then the Button A changes to its visited state with a tick. Same for Button B.
But I am unable to find a way to do this. I don't understand triggers at all, especially when it comes to adding variables. Please help. I would really appreciate step by step guidelines.
1 Reply
Hello Rida!
I bet you're very close to getting it to work the way you need to. Let me give you a hand.
I think this is what you're going for.
Using variables is a great way to keep track of visiting slides so that you can trigger changes anywhere in the course based on what the learner has been doing.
In this scenario, it makes sense to have a true/false variable for each of the content slides (2, 3, 4 and 5) to track if they've been visited.
If you're using buttons on the main slide, delete the pre-built Visited state. It will fire as soon as you click the button, and that's not what you want.
Triggers work best when they are attached to a specific action, and in this case, I think you'll want to trigger the state change when the timeline starts on your first slide.
Have a look at the attached file, and see if that makes sense for you.
This discussion is closed. You can start a new discussion or contact Articulate Support.