Changing State When Clicked If Variable Is Equal To TRUE (Storyline 3)

Sep 30, 2020

Hi Community!

I've got some slides that have several layers (introduction, L1, L2, etc.).  They are set to show the introduction layer when the slide starts.  Then the user can click on tabs to go to the other layers, but I want them to only be able to OPEN these layers once each layer before it has reached the 7 second mark.  

My problem is that I don't want my tabs to go to a visited state (they change from blue to gray) until the timeline on each layer actually starts.  So, I have the trigger as:

Change state of Rectangle 5 to Visited when the user clicks Rectangle 5 if (my variable) is equal to true.  

These triggers are on my base layer.

With the way I have it right now, the tab is changing states when I click on it EVEN if it doesn't open/before the timeline has reached the 7 seconds.  And I need it to NOT change states until the 7 seconds has passed AND the layer is opened.  

HELP!

3 Replies
Walt Hamilton

They are changing because that is the built-in action of a Visited state, and there is no way to defeat that.

However, If you create a custom state with a name like Completed, it might work.  I say might, because with a different name, the state won't change until the variable is true and the rectangle is clicked. I really can't see a good way to get the learner to click again after 7 seconds, if they click once before 7 seconds and it doesn't work.

It sounds to me like you are requiring the layers to be visited in a set sequence, so the easiest method would be to enable the tab when the layer before it reaches 7 seconds. Since these are all on the same slide, a layer can change the state of objects on the base.

Then the learner can click the tab to see the next layer, and the built-in action will change the state. It is dangerous to create a trigger that duplicates the built-in actions (change state of object to Visited when object is clicked, for example) because there is always the potential that the triggers will conflict with each other, with unpredictable results.

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