Forum Discussion
Continue Triggers
- 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:
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:
Thanks Judy. How do I reset the variable for each slide?
- CaitlinGregory-6 months agoCommunity 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.
- JudyNollet6 months agoSuper Hero
I'm glad you got it working.
When a project has variables, I find it helpful to display the variable reference(s) on the slides. That makes it easier to see if the variables are changing as expected, which makes it easier to troubleshoot. Then, before publishing, you can delete the text box with the references. Or hide it or move it off the slide, so it's handy to show again when needed.
Related Content
- 7 months ago
- 3 months ago
- 4 months ago