Conditions and States

Jun 04, 2014

Hi Everyone,

This is a problem I’ve been working on for over a day, and could really use some extra eyes on.

I’ve uploaded a sample slide from my module. What I’m trying to do, is set up a screen in which the student chooses two out of five candidates. Any solution I can think of involves a counter to track how many candidates are selected, but I can’t even get a simple counter to work.

The counter would need to increment or de-increment depending on whether or not the student changes their mind, and would be used to:

  • Prevent the student from advancing if they choose less than 2 candidates
  • Prevent the student from choosing more than 2 candidates

In the sample I’ve uploaded, Picture 6 has a trigger that should increment the counter (finNumSelected) based on the following conditions:

  • Picture 6’s state = Normal
  • Picture 6’s state != Selected

What happens is that the counter does not increment until the image is clicked while it is in the selected state. Can anyone shed light on why this is happening?

I’m getting close to moving this entire slide into Flash, because I’m not sure I can figure out a solution to “picking two” within Storyline. I’ve tried a freeform slide, and several different trigger-based solutions. Hopefully I’m missing something blindingly obvious. Any help is appreciated.

4 Replies
Michael Hinze

Have a look at the attached, revised file and see if that's what you wanted. I changed a bunch of triggers and added disabled states to the five finalists. Most triggers I added are slide triggers that fire when variables change. This way, only two finalists can be selected at any time. I hope that helps.

Julia Koller

Hi Michael,

I had to work on a different project yesterday, but I'm finally back on this one. So, I've started going through the triggers to understand how they work.

So, I see a series of triggers that "Toggle the variable FinalistXSelected  When the user clicks." And in the dialog box, the variable Operator = NOT assignment. What does "NOT assignment" mean?

If you don't mind, I might be peppering you with questions as I work. I'm torn between just taking the time to learn what is going, and trying to meet the deadline.

Thanks again.

Michael Hinze

Julia Koller said:

Hi Michael,

I had to work on a different project yesterday, but I'm finally back on this one. So, I've started going through the triggers to understand how they work.

So, I see a series of triggers that "Toggle the variable FinalistXSelected  When the user clicks." And in the dialog box, the variable Operator = NOT assignment. What does "NOT assignment" mean?

If you don't mind, I might be peppering you with questions as I work. I'm torn between just taking the time to learn what is going, and trying to meet the deadline.

Thanks again.

Hi Julia, no problem at all. The NOT ASSIGNMENT operator is used for T/F variables to toggles them. For example, if a T/F variable has a starting value of False and a button with a NOT ASSIGNMENT operator for this variable is clicked, the variable will be True after the click, then will be False after the next click etc.

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