Variables not peristant across slides
I have variables set up so that when I click a named object that has 3 states a variable is changed from False to True, so that when the object (with same name) is copied to another slide a trigger will change the object to a new state if the variable is True.
In ordinary words - I want a button to stay in it's Disabled state from lside to slide once it has already been clicked.
It's not working.
11 Replies
You only need 1 variable for that (for all slides), a listener trigger on each slide and a slide trigger to check the "status" of the button in the beginning of each of those slides.
Hope this helps,
Alex
What is a listener trigger?
I have a Slide trigger that Changes the State of "Object 1" to "Disabled" when "Var 1" changes if "Var 1 - True". Var 1 is set to True when a button is clicked on the previous slide.
Should work but doesn't. Not sure what I'm doing wrong.
That trigger will work when the variable changes, but then when you go to the next slide it won't work as the variable hasn't changed. So you need another trigger on each slide that says Change the State of "Object 1" to "Disabled" when "Timeline Starts" if "Var 1 = True".
I had the trigger on both slides and it still didn't work
I verified that the variable had persisted between the 2 slides. The reason it wasn't working is that I copied the 3-state object to the new slide and even though it has the same name Storyline is treating it as a unique object. I had to re-select the new object in the trigger. Now it works. Storyline identifies the object by some internal code and not by the name you give it.
Glad you got it working Ray.
Actually, it identifies the object first by slide location, then by name. So yes, the same object on a different slide is a different object.
Thanks Matthew! I just ran into the same problem and the solution was a missing listener trigger. My triggers (original and listener) are on the slide master and it works perfectly now.
Wonderful! It glad that was helpful for you Heather. It's often the little things that trip us up...
Glad that this older thread was able to assist you as well Heather and welcome to E-Learning Heroes :)
Thank you so much for this reply, you really saved my day!