Changing state of object once slide has been visited

I'm having trouble with this whole trigger/state/variable thing!

I have a quiz slide. 

Next slide has a caption "Great! Click the Review Quiz button to see how you did!"

Student visits the Results slide to see how he did.

When he hits the next button, student is taken back to the slide where it says "Great! Click the Review Quiz button to see how you did."

What I want to happen is when the student is taken back to the slide with the caption...I need to change the caption that says "Ready to move on...?"

I have a visited state with that caption...can't figure out to change the state when the slide is visited to show this caption. Thank you!

10 Replies
Christine Hendrickson

Welcome to E-Learning Heroes, Sheryl!

You could try a number variable that +Adds value when the timeline for the review slide starts. Add a trigger to change the state of that caption when the value is greater than the first addition. 

For example, you could create a number variable called "SecondView", with an initial value of "0". Trigger that variable to adjust by +Add-ing the value of "1". Now, the first time the learner visits the slide, the value for that variable will be "1". The second time they visit the slide (after reviewing once, or multiple times), it will increase. 

Also, if you don't see the changes taking place, be sure your results slide revisiting settings are set to "Resume saved state".

Here's a quick example:

Results Slide Variable Example for Sheryl

I'm also attaching the example file. Take a look and let me know if that's something that will work for you.

If you still have trouble with this, feel free to share your .STORY file. I'd be happy to take a look :)

Thanks!

Christine Hendrickson

Hi Sheryl,

You're very welcome! Happy I could help :D

There are quite a few tutorials out there for variables and triggers. However, if you're ever trying to do something like this and just can't seem to get it working - always feel free to ask :) This is a fantastic community filled with very talented folks that are happy to help. You're also welcome to contact me, if you'd like, as well.

Here's some tutorials on variables you might want to check out, or keep for reference:

Here's how you can use variables and triggers to maintain or change object states across multiple slides:

And here's some tutorials on triggers:

I hope this helps!

Have a great day,

Christine

Robin Sinclair

Hi,

I have set up a variable to assign a value once the button is clicked, and the next button to only display when a certain total value is reached (equal to the number of buttons that need to be clicked before proceeding). The problem is, that if the learner goes back to that slide using the Previous button, the next button should display because the total value was already reached, but it's not working.

Thanks!

Walt Hamilton

Robin,

You can create a True/False variable to indicate that the audio has been heard, for example "Audio1Completed", with a default value of False. Then create a trigger to "Adjust variable Audio1Completed -> Assignment > True  when audio completes. Place it on whatever slide or layer that plays the audio.

Since you have already done this:

In order to ensure learner listened to all audio, I added triggers to prevent them from advancing until they did

you have done most of the work. Find each of these triggers and add a condition to them: "On condition variable Audio1Completed is equal false"

that means that your triggers that prevent them from advancing before they listen to the audio will function only if the audio has not finished.

 

Robin Sinclair

Hi Walt, 

Thanks for the reply - I updated my original post because I figured out a way (I think) to do it with a number variable and trigger. I know variables are supposed to hold data across slides, but for some reason, when I click Previous to go back, the next button no longer displays despite the value having been reached already.

UPDATE: I figured it out! It was my initial trigger to Hide the next button that was causing me issues. 

But while I got it to work on one slide, I can't make the same process (with a differently named variable set up in the same way) work on other slides. Help!

Alyssa Gomez

Hi Robin!

It sounds like you're using a numeric variable to track the buttons that are clicked. I'm thinking you also have this trigger on your slide: Change state of Next button to hidden when the timeline starts.

If so, add a condition to that trigger: 

Change state of Next button to hidden when the timeline starts on the condition that the number variable is less than # [insert number there].

Let me know if that makes a difference!