Limiting quiz attempts is not working

Aug 25, 2022

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 

7 Replies
Walt Hamilton

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.