Trouble with Conditions & Variables

Aug 07, 2020

Hi Articulate community,

Hope everyone is doing well out there!

I’m working with some variables & conditions in storyline, and want to grey out certain texts based on answers that have been selected in previous slides.

I’ve had success with setting up the conditions to switch the text colour on one slide, but on the following slide, I can’t seem to replicate the effect, and I can’t seem to figure out what it is that I’m failing to see.

(I’ve also included a pdf with the rough overall concept)

Would anyone be up for looking under the hood and seeing if they can spot anything obvious, or perhaps suggest an alternative to get a similar user experience for slide 3?

Thank you all in advance :)

6 Replies
Walt Hamilton

I expect some sort of trouble from these two triggers on slide 2

 

Firing a trigger based on "When state of is..." can work for three or four items on a slide, but when you get more items, it becomes unpredictable. I suggest deleting that trigger.

Changing the state of something to Visited when it is clicked almost always causes unpredictable results. Selected and Visited have built-in triggers that make them work, unless they have a conflict with a trigger that you created to do the same thing. Then, who knows what can happen?

My suggestion is to delete the trigger to change the state to visited, and let the built-in magic handle that change of state.

Then use this trigger to set the variable:

Be sure you set all the variables before the trigger to jump.

When you try this, you will find that the last selected negative item still shown on slide 3. That is because of the selected state. You don't need it, and you never use it, so I would delete the selected states. (Delete it on one button, then double click format painter, and click each of the other buttons to delete it from them.)

Dave Cox

Hi Learning,

On Slide one, you need to use button sets to get the radio buttons to toggle. Then you can set the variables true or false based on which radio button is selected. I suggest you set the variable to true or false when the user click the radio button, rather than use the selected state. 

On the second slide, you need to use button sets there too, to get the radio buttons to toggle. Remove the triggers that are setting the states of the radio buttons, and it is interfering with the radio buttons own states. You can set a variable with each of the based on which radio button is clicked. I suggest a numerical variable with values of 1, 2, or 3 in this case.

On slide 3, I would avoid using the state of Select if you are going to set the state with a trigger. The default states in StoryLine have their own logic that can override your triggers. I always create a custom state for this. For example, you could call it "Sel" I created one on the first object for you.

This discussion is closed. You can start a new discussion or contact Articulate Support.