Having some issues with a True/False variable.. need a hand :)
Feb 01, 2015
So... I'm building a course in SL2 which includes a scenario and some variables. It is all working as it should, however there is one scene where a behaviour is not working as I would expect it to work.
I have a main menu that has four buttons and I have added a 'New state' to each button. Each button leads the learner into a series of linear slides that when completed, lead back to the main menu.
I have added a True/False variable on the final slide in each linear sequence that should change from False to True when the timeline starts on that slide.
Finally, I have added some triggers to the menu slide that instructs Storyline to change the state of the buttons to the 'New State' once each variable in the final slide has changed from False to True. However, this is not working - can anyone diagnose?
Here is the demo and I have attached the master file.
15 Replies
Hi Ant
see attached - updated the menu slide triggers
Brilliant thanks so much, but can you explain why mine wasn't working? It seems to me that they are both trying to achieve the same goal?
The menu slide needs to know when the variable changes. Because you are changing the variable on the last slide of each scene, it's not registering with the menu slide until you say 'when the timeline starts' check if anything has changed.
Ok, I think that makes sense! Thanks so much for taking the time to help.
So.. this is creating another issue, that I was going to post as a separate issue, but may as well post here now we've started the discussion - once I start down the linear path, I can click 'Prev' and go back to the menu slide, and the 'New State' has been activated on the menu buttons despite not having activated the variable change from False to True on the final slide in the linear sequence?
But how is this happening when the variable hasn't been changed? ie. I haven't reached that slide yet, so the variable shouldn't change?
Hi Ant
that behaviour isn't happening in the story file I sent you.
I click the first blue button move next, click prev go back to main menu and it's still blue. Doesn't change state until I have reached the final slide of that set and return to main menu
Can I ask why you have a submit button on the menu slide?
Hmm ok, I actually looked at the file you sent and then copied your triggers onto my file, rather than replacing my file with yours (this is a scene from a larger course).
I can see that your example is not doing this, so I will need to see what else you changed to understand why mine is behaving like that!
Also, no reason for a Submit button, must have accidentally added that when removing the Prev/Next buttons!
I didn't touch anything else except the four triggers on the menu slide.
check trigger order
Ok, I'll do some more digging - thanks again for all the help Wendy!
Glad to help Ant.
shout out if you need anything else
I figured it out, I was using an older version of the source file on which the New State was Visited instead- I think because the visited button has some default behaviours, that was affecting how the slides behaved! (Just in case you are interested!)
Good to hear you worked it out - well done!
Thanks for the update Ant,
Glad you got this sorted out!
Was just having the same problem, should have started here, you can always find inspiration or an answer. Visited state was the issue, must name the state something else.
Glad this thread helped you out Tom and thanks for the update!
This discussion is closed. You can start a new discussion or contact Articulate Support.