Why is this condition & trigger combo not working? Arrrg!

Mar 02, 2016

Would someone be willing to take a look at this slide and help me understand why a particular trigger that has a condition is not working, please? Story file is attached.

Here are the important pieces of this messy slide:

  • a yellow rectangle (cleverly called yllwrect). Initial state is hidden. The state changes to Normal when an animation completes. That trigger works. 
  • a variable (called resultbox) that is set to False. 
  • a trigger that changes the variable "resultbox" to true when an animation (same one mentioned in first bullet point) completes. 
  • a trigger that changes the state of another object (called go) when the value of "resultbox" changes to True. That works
  • an object (ResltCalv). Initial state is hidden. The state changes to Normal when user clicks Yestight. That trigger works. 
  • What DOESN'T work is putting a condition on the RelstCalv trigger (above) that changes its state to Normal if the variable resultbox is true. This trigger is the second to the last at the bottom on the trigger panel.

I've been trying to figure it out all day. I think it has to do with the timing. Maybe the RelstCalv triggers before the variable changes when it actually needs to fire off after the value of the variable changes to True. I don't seem to have much room reordering the triggers though. 

Thank you to anyone who can help!

 

 

16 Replies
Jennifer Rowe

I just tried it out in Preview and it works as it should. Hmmm. I used the same file, too.  

Click on Yes and No in the large colored boxes in the back. They will fly out of the frame one by one and then the yellow rectangle will appear. The smaller colored boxes are not activated yet...I am trying to get that one box working and then I will use the same set up for the rest of them. 

 

Does that make sense?

Walt Hamilton

Jennifer,

Yes, it is a timing issue. Resultbox isn't set to True until the user clicks on OverWeight, which is the last group. When Resultbox changes, it shows the arrow, as planned.

YesTight sets ResItCal visible when clicked if resultbox is true. But YesTight is the first group, so resultbox hasn't changed yet.

I suggest you take out the conditions and let the click make it visible as soon as the user clicks on YesTight.

If you want it to become visible later, you will need to attach that trigger to the OvrWght group and initiate it when the animation completes. Be sure to put it after the one that sets resultbox.

Both of those options work for me.

Jennifer Rowe

Thanks Walt! I am not quite sure what you mean about attaching the trigger to the OvrWght group and initiating when it completes, however.

As you have probably figured out, I want the yellow rectangle to appear after the last orange tile (OvrWght) flies away and I want it to display only the tiles the user selected YES on. 

I can't seem to manipulate the timing of the triggers very much. 

Jennifer Rowe

Hi Wendy,

Thank you so much for this! Unfortunately, I need ResltCalv to show in the yellow rectangle only if the user clicks yestight. Walt came up with a solution that involves creating a variable for each of the tiles on the results box. 

Sooo complicated!

Anyway, the fact that you demonstrated how a typical user would interact with the yes/no elements is very valuable so thank you for that too!!

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