Forum Discussion

CaitlinGregory-'s avatar
CaitlinGregory-
Community Member
2 months ago
Solved

Continue Triggers

Hi, hoping someone can help as this is driving me nutty!

I set up triggers so that a 'continue' button appears and is clickable after 4 buttons have been pressed. This works perfectly well on one slide, but the following 2 (all set up in the same way) fail each time.

To add to my confusion, when previewing the scene or whole module, when I hit replay, the triggers work.

Can anyone shed some light on what's happening here and/or how to fix it please?

  • CaitlinGregory-​ : Troubleshooting is often just guessing without seeing the .story file. Here's my best guess about potential issues:

    • When a trigger adds 1 to a variable when a button is clicked, that will happen every time the button is clicked. So, for example, someone could click one button four times to make the number variable = 4. 
    • Variables maintain their value until a trigger changes it. If you're using the same number variable to count clicks on multiple slides, you have to reset it to 0 for each slide. Otherwise, if it reaches 4 on the first slide, it will already be 4 when the user advances to the second slide.

     

    Based on your description, it sounds like the user doesn't leave the slide when they click the must-be-clicked buttons. If that's the case, you don't need to use the variable. Just give each of those buttons a Visited state. Then change the state of the Continue button to Normal when the State of those buttons = Visited. Here's an example of that type of trigger: 

     

9 Replies

  • Happy to help but I need more context on how your workflow., Did you use variables to do this? If not you need to set a number variable to increment by one each time the required object is clicked. You need to assign a YES/NO variable to each of the 4 objects to be clicked. When the number variable reaches value of 4 you need a trigger that sees all 4 objects have been clicked then it  changes the continue button state to hidden continue button to visible .

  • Thanks Gary, 

    Here's an example of how the triggers are set up

    I'm not sure what you mean about the 'yes/no' variable, unless it's one of the above?

  • Thanks for this. The Yes/No variable records the clicked state of the object is "clicked" already when it says "Yes" just incase the user clicks it again.

  • Sorry, still super confused.
    I've set my continue button to appear once the 'button clicks' variable reaches 4 clicks, and each button to add 1 to the same variable when clicked on. 
    This works for the first slide, and does for the following 2, but only once the page has been reloaded.

  • OK. Check the slide properties to see if it is resetting each slide to the original state? This might be where the problem is. Let me know if it's resetting the state of the slide to the original state.

     

  • CaitlinGregory-​ : Troubleshooting is often just guessing without seeing the .story file. Here's my best guess about potential issues:

    • When a trigger adds 1 to a variable when a button is clicked, that will happen every time the button is clicked. So, for example, someone could click one button four times to make the number variable = 4. 
    • Variables maintain their value until a trigger changes it. If you're using the same number variable to count clicks on multiple slides, you have to reset it to 0 for each slide. Otherwise, if it reaches 4 on the first slide, it will already be 4 when the user advances to the second slide.

     

    Based on your description, it sounds like the user doesn't leave the slide when they click the must-be-clicked buttons. If that's the case, you don't need to use the variable. Just give each of those buttons a Visited state. Then change the state of the Continue button to Normal when the State of those buttons = Visited. Here's an example of that type of trigger: 

     

      • CaitlinGregory-'s avatar
        CaitlinGregory-
        Community Member

        The variables reset is what cracked it for me, thanks so much! At the start of each slide using this variable, I've reset it first and now they all work.