Forum Discussion
ChristaNovel637
4 days agoCommunity Member
Storyline triggers based on attempt count not working as expected
My triggers are not behaving as I'd expect. Any input is appreciated (see screenshot).
I have tried multiple permutations of these triggers including increasing and decreasing the numbers, trying g...
- 4 days ago
Based on the behavior you've observed, I'd guess that your AttemptCount variable isn't getting above 2. When working with variables, I highly recommend showing the variable value in a temporary text box on the slide. That helps with troubleshooting, because you can see whether the variable changes as expected.
That said, I think you're making more work for yourself than is needed. Since it's a graded question slide set to 3 attempts, you could do this to get the behavior you want:
- Use a T/F variable to track whether an attempt has been made. The default = False. The Try Again button adjusts it to True.
- On the Try Again layer, use that variable to determine what message to show the user. For example, if it's False, show the Normal state of the text box. Otherwise, show a custom state with another message.
- Keep both the Correct and Incorrect layers. Adjust the layout to blank, and delete all the content. Add 2 triggers to those layers. The first trigger hides the layer when the layer's timeline begins. The second trigger jumps to the next slide.
This is demonstrated in the attached file.
ChristaNovel637
3 days agoCommunity Member
Using states on a text box in one "try again" layer did the trick. Thanks.
JudyNollet
3 days agoSuper Hero
You're welcome! I'm glad you got it working. Pay it forward when you can. 😊
Related Content
- 7 months ago
- 10 years ago
- 8 months ago
- 9 months ago