Forum Discussion

CaitlinGregory-'s avatar
CaitlinGregory-
Community Member
6 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 s...
  • JudyNollet's avatar
    6 months ago

    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: