Forum Discussion

KasharaBrown-bb's avatar
KasharaBrown-bb
Community Member
5 years ago

Help! Variable/Trigger Not Working

Hello,

I have a true/false variables  that will not adjust to the correct and incorrect state properly.  I've tried just about everything I can think of to correct the issue. If anyone has experience with this, or knows how to correct it and can offer some guidance I would really appreciate the help. I've attached the story file. Thanks!

 

1 Reply

  • I just checked Task 1, but I found some things that can help you.

    1. Just a quick FYI: You don't need this trigger:

     

    Task 1 spotlight 1 is an object on Task 1 layer. It can only be seen and clicked if the layer is already showing. Showing a layer that is showing has no effect.

    2.These triggers are a problem:

     

    You have the right idea here. Using "Selected" and "Normal" state allows you to click back and forth without triggers. Your triggers don't work as you want, because clicking on an object changes its state between "Selected", and "Normal" before it starts going through the list of triggers. So intuitively, one would think the state is 'Normal", and when I click it, I want it to change the variable to true, and the state to "Selected".  But it changes to "Selected" first, then checks.

    But don't change it just yet; you can take it to a higher level. Not only do objects toggle, so do T/F variables. Create the variable, and set it to a default value of false.  Use this trigger: "When user clicks Important Toggle 1, toggle Task 1 Urgent !" One click, one trigger, and both the object and variable change to the other state/value. The object turns to selected, and the variable to true.

    3. These triggers are a problem:

     

    Note that when the Important toggle is clicked, they change the Urgent variable, instead of the Important variable. Of, course you will want to make the same changes to them as to the Urgent.

    See if these changes move you farther along, and if you still have problems, post again.