Changing States across many slides with one variable?
Aug 14, 2013
Hi,
I am creating a course with Storyline with 2 menus- a slide with a main menu and a menu on the left hand side of each slide. Learner can choose which way they want to navigate through the course.
If a learner clicks on topic 3 (for example) using the side menu found on the left hand side of each slide, we would like for all the topic 3s on every slide to be marked as visited. (Is this even possible?)
I tried creating several variables (I tried a true/false and number variable) so that if the variable changes (either to true or if it is greater than 1 when any of topic 3 are clicked) then all the topic 3 should change status.
So my triggers on each slide look like this:
Slide Triggers
Changes state of Topic 3 to Visited when variable changes
Object triggers
-Set variable equal to true when user clicks [on topic 3]
-Jump to slide 3 when user clicks [topic 3]
However, this is not working. What has been happening is topic 3 on the slide I clicked on topic 3 is changing to visited.
Any suggestions? What am I doing wrong?
11 Replies
Melissa;
this is a common problem people have. The trigger "when variable changes" only works on the slide you are on. What you probably want is a trigger on each slide that says change state when timeline starts with a condition of true (for being visited on any slide)
I hope I am being clear. If you want to post your file I or someone else would be glad to help with it.
Tim
Hello Tim,
Thanks for your quick response. You are awesome!! It worked. I should have posted something sooner.
Thank you!!!
I'm glad that Tim was able to help you out Melissa! Just let us know if you need anything further.
Picking up on this older post, I have SL2 with 4 scenes. Scene 1 is an 'intro' scene and the last slide has 3 buttons for the student to select which topic to watch. Each topic has to be completely viewed (all slides in that scene), so I can't set a trigger on the button to show a completion check (hidden at start of slide) on click because simply using the button to go to the first slide of the topic scene does not mean they have completed the scene.
At the end of say, scene 4, I have a variable called Scene4Complete that changes value from False to True at the beginning of the slide timeline. When the student clicks the Next button they are returned to Scene 1 to the last slide to select another topic. I have a trigger that is set to change the state of the checkmark from hidden to normal when the timeline starts If Scene4Complete is equal to True. It's not working. The check is not changing states to normal. How do I get a variable that changes value in a different scene to affect change on an object in another scene?
Hi Tabatha!
Do you have a .story file that we could take a look at? That would be helpful.
My first thought is the slide properties of your scene 1 slide that you are coming back to. Please be sure you do not have this set to 'Reset to Initial State'.
I have tried both Automatically Decide and Resume Saved State on the slide properties. The only one I am trying to test right now is the 3rd button - Oily Waste which will link to scene 5 - Oily Waste.
Tabitha;
Move your trigger to the slide level instead of the object level and it will work.
In the trigger it will be when timeline starts on slide instead of the checkmark.
Tim
Thanks for that, Can you help me understand why that makes a difference? All the objects have the same start on the timeline and it's the object state I'm changing, not the slide. So why does the command have to be tied to the slide and not the object (which is where my head thinks it logically should go).
Hi Tabatha!
Looks like Tim beat me to it, but he's correct. Your file is attached.
Hi Tabatha!
It's when you want the trigger to occur - you want the checkmark to change to the Normal State when the timeline starts (the timeline is the slide), not the timeline of the object.
Once you set up the change of state on one slide, use the copy function under Triggers (or right click) to put this trigger on your clipboard. then paste it into all the subsequent slides. It's a bit faster than doing it manually for all slides.