8 Replies
Nancy Woinoski

Hi Saffir, you don't actually need a variable for what you are trying to do. All you need to do is have the button change the state of the rectangle to bright on click. I have made a change to your file and uploaded it here so that you can see what I mean.

You really only need to use variables if you want some value or action to persist over a number of SL slides.

Sayuj Ravindran

Hi Saffir,

Nancy is right... 

But your logic should also work fine. I think the issue with your version is that the Slide Trigger to set when the Timeline Starts. When the Timeline Starts, the variable is false and so it doesnt change the Rectangle 1 to bright. I think it should be changed to:

When : Variable Changes

Variable : bright

On Condition : bright = = Equal to True

saffir test

Nancy, thanks for the reply. I should have explained that I need to do it this way for another project I'm doing. The variable must be stored and used

Sayuj, you're right. From what I've seen in other demo projects, I got the impression that "when timeline starts' meant 'anytime during the slide'. Using your suggestion, it worked, confusion cleared. Thanks.

Brian Batt

Hi Saffir,

Storyline allows you to apply multiple triggers to the same object. You can also apply triggers to master slides as well as content slides. Here are the rules regarding the order in which all these triggers get executed when users view your published course:

If there are triggers on the master slide as well as the content slide, the master slide triggers get executed first.

If there are multiple triggers on the same object that are triggered by the same action (such as "on click"), the triggers get executed in the same order in which they appear in the Triggers panel in Storyline. (You can use the Up and Down arrows to adjust the order of triggers.)

Thus, you'll need to think about what your triggers are doing.  In one trigger, you're setting the value of bright to False if it's True.  In the next trigger, you're setting the value of bright to True if it's False.  In that scenario, the ending value of the Bright variable will always be True.  

Sayuj Ravindran

saffir test said:

Sayuj, you're right. From what I've seen in other demo projects, I got the impression that "when timeline starts' meant 'anytime during the slide'. Using your suggestion, it worked, confusion cleared. Thanks.

Hi Saffir,

Glad I could be of help... Found the below note about Timeline Starts trigger which is very helpful.

Source : http://storylineauthors.com/?p=777