Forum Discussion
Limiting quiz attempts is not working
I am having issuse with limiting the number of attempts in my quizzes and don't know what to do. I have set up the variable so with a default value of 0 and set a trigger for my retry button that adds 1 every time the user presses the button. I Have set a trigger that changes the state of the button to disabled when the timeline starts on my failure layer if attempts = the value of 2
Both of my triggers have been moved to the top and I want to limit my quiz to 3 attempts (meaning the user can press the retry button two times).
Can anyone help me with what I am doing wrong or why it's not working?
Thank you in advance
/Mattis
- RonPricePartner
Can you share a picture of your trigger panel on your failure layer?
- WaltHamiltonSuper Hero
Without seeing your .story file, it is impossible to know why it is not working.
I wonder if you can use a built-in quiz. They all come with all the functions you are describing. Choose Format, and select a number for the number of attempts. All those activities will automatically occur behind the scenes.
Of course, if you are using a made from scratch quiz, you will have to create everything. In that case, use the button below to attach your file to get some help.
- RonPricePartner
My guess is that it could be a trigger order issue. You will want the adjust variable trigger to be first.
- SavilleConsu972Community Member
- WaltHamiltonSuper Hero
Your trigger always sets the variable to 1, rather than adding to it. Click Set and change it to Add.
I still wonder why you have gone to all this work to recreate something that is built into the quiz automatically.
- RonPricePartner
Walt is correct - change the set to add, and you should be golden.
As Walt said, there is an automatic feature for retrying a quiz question, but not for an entire quiz, so your variable solution is a good option.
- SavilleConsu972Community Member
Thank you so much both 🙏👏
@Walt I'm new to storyline so I just basically googled my way to limiting attempts and I didn't even know that there was a built-in function that could do that.