Thanks for this tip. I tried it and it worked, though I did need to add a condition to my trigger on slide B to make sure that the state change only took effect if the variable was set to true.
I need some help on this one... I'm trying to set up 3 slides (A, B, C); Slide A has many layers and also 2 buttons (b1 initial state visible and b2 initial state hidden) which link to Slide B or C. Slides B and C have buttons which link back to Slide A. Once a user completes Slide (B or C) I want them to return to Slide A with the state of b1 hidden and b2 visible.
I'm fairly certain that I need to use Variables (true/false) but I'm really getting hung up on this one... any help would be appreciated.
I'm trying to create a Menu slide that checks off sections once they are completed. My setup looks like Nicole's but for some reason it isn't working. Any help? Thanks
I am trying to do exactly what Andrew has raised a question for, and somehow the trick doesn't work. Is there any extension to this thread somewhere? Or can someone please help with an approach.
your slide trigger on the menu slide doesn't have a state assigned. Your rectangles have a normal and selected state so when I click rectangle 1 it changes to selected state with the tick but you don't have a visited state...so when I return to the menu I would want to see the visited state (can be a different colour or the tick could be on the visited state)
Well, I found the solution to my concern on another thread. It was a question raised by Melissa and answered by Tim.
"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."
not sure that is entirely correct - variables are meant to be global for the whole file...so you should be able to adjust a variable on slide 3 and make it change an object on slide 1 - see attached file - unless I don't understand what you mean.
Hi Wendy, you are right, variables are meant to be global and they are behaving so. It is just that when you use the trigger 'when variables change' I guess it checks for a local (or in slide) change. I guess staff members can throw more light on this.
But if you make a trigger as proposed by Tim then it is able to register a change. I tested it on my file, works perfectly fine now.
Somehow the functionality of 'when variables change' conflicts with use case.
when variable changes trigger is only looking for when that variable changes, as it didn't change on the menu slide then you need a different trigger to ensure the state changes
HI, Rahul - I see that Wendy and Phil are helping you out here! Sounds like you are all set, but if you need additional assistance, please update to let us know. Thanks! :)
I am having this same issue. I believe I have followed the instructions you gave, but I am still not getting the results I am expecting. If you launch scene 1 a click the first option and go through the slides and return to 1.1. The red start should be changed to green completed. Please advise.
This trigger is the problem. Since the value of the variable changes on slide 1.4, slide 1.1 cannot see or hear it, so doesn't know when it happens. Change the "When" part to read when timeline of slide1.1 starts and you'll be fine.
I do this a lot. Actually, I typically have an additional state that I call something like Topic_Started. My thought is that if someone's accessing units of instruction from a main menu, you might want to mark which ones have been started and not finished. I essentially to the same thing, though.
Whatever you click to jump to one the units of instruction will have at least three triggers:
One to set a topic_started T/F variable to True
One to set the button (or whatever) to its Topic_Started state
A third to jump to the slide that starts that unit of instruction
Then, when I click Next to exit that topic and return to the menu, I use one trigger to set the topic_complete T/F variable to True, and a second to jump back to the menu page.
The button I clicked to go to the topic can have three states:
Normal (if the topic_started and topic_complete T/F variables are both False
Topic Started (if topic_started = True, and topic_complete = False)
Topic Completed (if topic_complete = True; note that I don't really care about the topic_started T/F variable's state here because, where this state is concerned, topic_started will always be True.
If someone has a more efficient way of doing this, please let me know.
I used the approach I described below to fix this (though I did it in SL2, I taught myself this technique in SL1.
Create a new state for Rectangle 1 called Done or Complete or something like that.
Edit the Selected state to copy its check mark.
Edit the (new) Done state to paste the check mark in the rectangle and format it so it's green.
Create two T/F variables: LessonStarted and LessonDone. Have them default to False.
Click Rectangle 1 and add three triggers:
Change state of Rectangle 1 to Selected when the user clicks (note, you may want to add a condition to prevent this from happening if the state of the button is already done)
Set LessonStarted equal to True when the user clicks
Jump to 3.1 when the user clicks
Note that the jump slide trigger must be the last trigger in the sequence. If you jump before you do the other two triggers, they'll never occur because you'll have left the slide before you get to them.
Now go to Slide 3.1 and add two triggers:
Set LessonComplete equal to True When the user clicks the Next button
Jump to 1.1 when the user clicks the Next button
Again, the Jump must be the last trigger for the reason stated above.
Go back to slide 1.1 and add a slide trigger to 1.1 that says, "Change state of Rectangle 1 to Done when the timeline starts If LessonComplete is equal to True
That should do it for you. Note that if you're going to use these rectangles as buttons to power navigation through your course, you may want to use buttons instead.
You'll also need to make LessonStarted and LessonDone variables for each button on your menu. They all need to have unique names.
If you format the first rectangle or button and get it working the way you like in terms of the states, use the format painter tool to format the other buttons/rectangles. It'll bring the states over so you can save a little time.
Change state of Rectangle 1 to Selected when the user clicks (note, you may want to add a condition to prevent this from happening if the state of the button is already done)
If you have a state named Selected, be aware that this is a built-in state, and comes with a set of hard-wired triggers, one of which sets the state to selected when it is clicked. Triggers that you have written may conflict with these built-in triggers with what are usually undesirable and unpredictable results. Experience has shown that it is best either to use the built-in state names and triggers, or to create custom state names to use with custom triggers.
I'm wondering if somebody can help me sort out the variables in this sample file as they are not doing what they are supposed to. I have two different scenarios but neither is working:
- On slide 3.5 (Summary section 2) I have set up a True/False variable that changes from False to True when the user clicks on Homebutton2. At the same time, the user is redirected to slide 1.2 Course summary. The variable is called Completed2.
The idea is that they either land back on the base layer of Course Summary but the state has changed to Completed and instead of seeing again the course objectives they see an image saying Completed (I have set up a state for this) and then they click on the following tab. This could happen after each of the sections is completed so whenever the user clicks the Homebutton after completing a section they land back here.
Alternatively, they could land back on layer 2 (where section 2 starts) but instead of seeing the specific objectives for that section, they see a Completed image (this also has a different state) and the proceed to the next tab. The same would happen after completing section 3, in this case they'll go back to layer 3 etc.
At the moment, I can't get either option to work even if I set the trigger to change the state when the timeline starts. I've tried different options with the player settings (automatically decide/resume saved state/reset state) both on the base layer and on layer 2 but after a couple of hours I am not getting anywhere...
I'm attaching the file so you can see exactly what I'm doing and where I'm going wrong... Thanks in advance for any help,
the zip file you attached is that the published output? It would be better if you could share the .story file for folks to take a look under the hood at what's happening.
There may be other problems, but start with this trigger:
The user clicks the Homebutton2, and it jumps to the summary slide before it gets a chance to change the variable. In a series of triggers, the jump should always be the last, because once the system comes to it, it jumps and ignores the rest of the triggers.
50 Replies
Hey Kristy,
Yes, it is possible. You'll need to use variables for this.
Give that a go. Should work fine.
Hi Kevin,
Thanks for this tip. I tried it and it worked, though I did need to add a condition to my trigger on slide B to make sure that the state change only took effect if the variable was set to true.
Thanks for sharing your technique with this!
Hey Catherine,
Glad it worked for you. More importantly, glad you were able to discover yet another way.
You know what they say, "Storyline is like an onion. Lots of layers to peel back."
I need some help on this one... I'm trying to set up 3 slides (A, B, C); Slide A has many layers and also 2 buttons (b1 initial state visible and b2 initial state hidden) which link to Slide B or C. Slides B and C have buttons which link back to Slide A. Once a user completes Slide (B or C) I want them to return to Slide A with the state of b1 hidden and b2 visible.
I'm fairly certain that I need to use Variables (true/false) but I'm really getting hung up on this one... any help would be appreciated.
Michael,
You're right about the True/False variable
Here are the steps I followed to create a .story example for you:
I hope this helps clarify... let me know if you have any additional questions...
NICOLE! You're AWESOME!
I'm trying to create a Menu slide that checks off sections once they are completed. My setup looks like Nicole's but for some reason it isn't working. Any help? Thanks
I am trying to do exactly what Andrew has raised a question for, and somehow the trick doesn't work. Is there any extension to this thread somewhere? Or can someone please help with an approach.
Hi Andrew
your slide trigger on the menu slide doesn't have a state assigned. Your rectangles have a normal and selected state so when I click rectangle 1 it changes to selected state with the tick but you don't have a visited state...so when I return to the menu I would want to see the visited state (can be a different colour or the tick could be on the visited state)
Well, I found the solution to my concern on another thread. It was a question raised by Melissa and answered by Tim.
"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."
Thanks Tim and Melissa :)
Hi Rahul
not sure that is entirely correct - variables are meant to be global for the whole file...so you should be able to adjust a variable on slide 3 and make it change an object on slide 1 - see attached file - unless I don't understand what you mean.
Hi Wendy, you are right, variables are meant to be global and they are behaving so. It is just that when you use the trigger 'when variables change' I guess it checks for a local (or in slide) change. I guess staff members can throw more light on this.
But if you make a trigger as proposed by Tim then it is able to register a change. I tested it on my file, works perfectly fine now.
Somehow the functionality of 'when variables change' conflicts with use case.
when variable changes trigger is only looking for when that variable changes, as it didn't change on the menu slide then you need a different trigger to ensure the state changes
HI, Rahul - I see that Wendy and Phil are helping you out here! Sounds like you are all set, but if you need additional assistance, please update to let us know. Thanks! :)
I am having this same issue. I believe I have followed the instructions you gave, but I am still not getting the results I am expecting. If you launch scene 1 a click the first option and go through the slides and return to 1.1. The red start should be changed to green completed. Please advise.
This trigger is the problem. Since the value of the variable changes on slide 1.4, slide 1.1 cannot see or hear it, so doesn't know when it happens. Change the "When" part to read when timeline of slide1.1 starts and you'll be fine.
That works...thank you very much!
I do this a lot. Actually, I typically have an additional state that I call something like Topic_Started. My thought is that if someone's accessing units of instruction from a main menu, you might want to mark which ones have been started and not finished. I essentially to the same thing, though.
Whatever you click to jump to one the units of instruction will have at least three triggers:
Then, when I click Next to exit that topic and return to the menu, I use one trigger to set the topic_complete T/F variable to True, and a second to jump back to the menu page.
The button I clicked to go to the topic can have three states:
If someone has a more efficient way of doing this, please let me know.
Thanks so much for stopping in to share your ideas, Chris! Hopefully that will be helpful to others who come across this thread seeking assistance. :)
Andrew:
I used the approach I described below to fix this (though I did it in SL2, I taught myself this technique in SL1.
Note that the jump slide trigger must be the last trigger in the sequence. If you jump before you do the other two triggers, they'll never occur because you'll have left the slide before you get to them.
Again, the Jump must be the last trigger for the reason stated above.
That should do it for you. Note that if you're going to use these rectangles as buttons to power navigation through your course, you may want to use buttons instead.
You'll also need to make LessonStarted and LessonDone variables for each button on your menu. They all need to have unique names.
If you format the first rectangle or button and get it working the way you like in terms of the states, use the format painter tool to format the other buttons/rectangles. It'll bring the states over so you can save a little time.
If you have a state named Selected, be aware that this is a built-in state, and comes with a set of hard-wired triggers, one of which sets the state to selected when it is clicked. Triggers that you have written may conflict with these built-in triggers with what are usually undesirable and unpredictable results. Experience has shown that it is best either to use the built-in state names and triggers, or to create custom state names to use with custom triggers.
Ahhhhh.... that may explain a few things for me!!! Thanks Walt.
Hi gang,
I'm wondering if somebody can help me sort out the variables in this sample file as they are not doing what they are supposed to. I have two different scenarios but neither is working:
- On slide 3.5 (Summary section 2) I have set up a True/False variable that changes from False to True when the user clicks on Homebutton2. At the same time, the user is redirected to slide 1.2 Course summary. The variable is called Completed2.
The idea is that they either land back on the base layer of Course Summary but the state has changed to Completed and instead of seeing again the course objectives they see an image saying Completed (I have set up a state for this) and then they click on the following tab. This could happen after each of the sections is completed so whenever the user clicks the Homebutton after completing a section they land back here.
Alternatively, they could land back on layer 2 (where section 2 starts) but instead of seeing the specific objectives for that section, they see a Completed image (this also has a different state) and the proceed to the next tab. The same would happen after completing section 3, in this case they'll go back to layer 3 etc.
At the moment, I can't get either option to work even if I set the trigger to change the state when the timeline starts. I've tried different options with the player settings (automatically decide/resume saved state/reset state) both on the base layer and on layer 2 but after a couple of hours I am not getting anywhere...
I'm attaching the file so you can see exactly what I'm doing and where I'm going wrong... Thanks in advance for any help,
Eva
Hi Eva
the zip file you attached is that the published output? It would be better if you could share the .story file for folks to take a look under the hood at what's happening.
Eva,
There may be other problems, but start with this trigger:
The user clicks the Homebutton2, and it jumps to the summary slide before it gets a chance to change the variable. In a series of triggers, the jump should always be the last, because once the system comes to it, it jumps and ignores the rest of the triggers.
Wendy, it is a zipped form of the .story file
This discussion is closed. You can start a new discussion or contact Articulate Support.