confused with variables

Nov 20, 2016

Hi, I have been messing with using variable to change button states since 0530 today and am stuck.

In the attached story there are four buttons on Menu.  I want the button state to change to "visited" after the user leaves the last slide in the branch.  No matter what I do, the state changes as soon as I click on the button.  I need this logic to work in areal project so will certainly appreciate guidance about what step I am missing or what I am doing wrong.

thank you!

9 Replies
Michael Hinze

The Visited state is a built-in state that is triggered as soon as you click an object. I would suggest that you use a custom  state, e.g. 'Completed' and change the triggers on slide 1.2. to change to that state if the variables are true. Also, make sure that you set the slide properties of 1.2  to Reset to Initial State.

Alyssa Gomez

Hi Peter,

I took a peek into your file, and I found a few triggers that needed a slight change. 

On the last slide of each module, you want to change the trigger to 'Set item1Visited equal to true when the timeline starts' because the user may not stay on the slide long enough for the timeline to end.

Also, the triggers for each menu button should say 'Change state of itemButton1 to Completed when the timeline starts on condition that item1Visited is equal to true'.

I've made those changes to your file and re-attached it here. Take a look at it, and let me know if it works for you!

Walt Hamilton

On the last slide of each module, you want to change the trigger to 'Set item1Visited equal to true when the timeline starts' because the user may not stay on the slide long enough for the timeline to end.

It is possible you may not want to change the variable until the end, if you want to force the user to complete the content before they get credit for having seen it.

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