State changes trigger on conditions of multiple state changes

Hi There, 

I am intentionally limiting advancement to the next slide by using a pair of change state triggers on the next button. The trigger "next button to normal" is conditional on 4 shapes changing state to "visited". 

When I preview the shapes all change to state Visited, but the next button doesn't change state to normal. I need help identifying what  am I missing here. 

thanks,

ray 

13 Replies
Raymond Scholl

I was able to achieve the desired effect by using a variable (True/ False) set to false at the start of the timeline and then changing to true when the shapes were visited. Which is great. 

But I don't understand why the fist pass at this didn't work with a condition set up on a state change trigger. 

Ashley Terwilliger

Hi Raymond,

What you described sounds right - so it's hard to say for certain what was throwing you off without seeing your .story file! 

With your permission, I'd like to take a look at your project file to investigate what's happening. You can share it publicly here, or send it to me privately by uploading it here. 

I’ll delete it when I’m done troubleshooting. 

Leslie McKerchie

Hi Raymond, 

Thanks for sharing your file so that we could take a look.

I noticed that the trigger you were using was based upon 'when the timeline starts', but closing slide layers does not cause the base layer timeline to restart, so the program was never looking for your new trigger. 

I'm glad that you've already resolved it for yourself, but just thought I'd help understand the 'why' behind it.

Also, I'm attaching your project file. Take a look at slide 2 for another alternative without creating a new variable as you did :)

Hope that helps!

Ted Nunes

Hi. I'm working on a similar interaction using states but I have a variation that's causing problems.

I have a submit/next button that should only jump to the next slide when certain buttons are Selected and other incorrect buttons are Normal. (basically a custom multiple select interaction.)

- If only some the "correct" buttons are Selected it won't advance (how it should work).
- If all of the "correct" buttons are Selected it advances (also good).
- If all of the "correct" buttons plus ANY of the "incorrect" buttons are Selected it advances (not good).

Have I uncovered a bug* or shortcoming, or can someone tell me what I'm missing?

*i.e. it appears that the conditional trigger ignores testing for a mix of states; it only judges which shapes are selected.

I can make it work by using custom variables instead of testing for Normal states in the condition but that's a hassle (and a shame) when it seems like it's so close to working using the states.

Thanks. ~Ted

Dab Sarecki

Hi I have just come across a similar issue in my project. I have the next button triggered to hide when states are normal and then go to normal when states are selected.

I also have set up triggers to change state of objects to selected when clicked on however the next button just does not want to show up for me when it should. I have tried also using visited as the state but no luck :(

I am not working with layers but with different slides - unsure if that is causing the issue? 

Have attached the project - it is scene 2 - slide 2.1.

Any assistance would be greatly appreciated!

Dab Sarecki

Thanks Lauren,

I've updated the trigger for the next button to include the 'if' variables, swapped the order of the triggers for the objects and ta-da!!!! The next button has shown up! That was a great learning experience!

Just for my benefit when should I be using visited or selected for states? I couldn't find an article as yet to help me work this out. Does it make a difference?

Thank you!

Vincent Scoma

Hi Dab,

Great question! 

  • Selected states are generally used to indicate that a learner has chosen the object. For example, a check box uses the selected state to provide a visual cue (check mark), indicating it has been clicked.
  • Visited States is how an object appears after it has been clicked. It's useful when you want to provide learners with a visual indicator of the objects they've already clicked (for example, a series of buttons). Storyline remembers this state when learners revisit the same slide later unless you've configured the slide properties or layer properties to "reset to initial state."

For more information on how states are defined and shown, please feel free to review this article here. Please let us know if you have any questions!