Using T/F and Number Variables Together

Feb 15, 2018

Hi guys! I'm pretty new to using variables and am having troubles using a T/F variable and a counter together. Here's more detail: 

I have a custom menu slide, I want to make sure that users can only click into the new section after they have completed the previous section. I'm using layers to make this happen, and on the last slide of each section I'm using a variable like "Set Unlock1 to True when the timeline starts".

The problem is, some of the last slides are detailed and have a lot of interactions in them. I want to be sure the user clicks into each of these interactions before the next section is set to unlock. I set up a number variable (JobFunctionsCounter) and set triggers to add a value of 1 each time the user clicks on a section. I want the Unlock variable to set to true when the JobFunctionsCounter is >=4. Here's what I tried: 

"Set Unlock2 equal to True when the timeline starts If JobFunctionsCounter is Greater than or equal to 4.00" . 

On my menu slide, I have a trigger set to show the next layer (which reveals the next section) when Unlock 2 is equal to true, and the following ones are still false. Unfortunately, when I test it the new layer doesn't pop up. 

Am I doing something wrong? I've attached the SL360 file here. 

1 Reply
Walt Hamilton

Kaitlyn,

A couple of thoughts:

 

Probably works when you test it, but may fail in real life. If a user were to click on this icon 4 times (I have no idea why they would, but they might conceivably return to a topic a second time) the counter would show they had completed the topic, when they haven't.  I would change it to add 1 on condition that the icon is not in visited state. The drawback is that you have to give each icon a state, but I think it is worth it.

Second: This trigger only fires when the timeline starts.

 

The only way to be sure the timeline starts each time you revisit the menu slide is to set it to reset to initial state on revisit. Otherwise, it may or may not.

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