Limiting Quiz Retry attempts in Storyline- Can't get it to work
I am trying to limit the amount of times a person can take a quiz in Storyline and I can't seem to get it to work correctly.
- I only want the users to retry to quiz if they failed; so I moved the "Retry Quiz" button to the Failure layer on the Results slide.
- I created a variable called "attempts" and added a trigger to the "Retry Quiz" button that increases the value of the "attempts" variable when clicked.
- I then set a layer trigger to change the state of the "Retry Quiz" button to disabled at the start of the timeline, if the "attempts" variable reaches 3.
- When I preview, the "Retry Quiz" button doesn't change its state regardless of the value of "attempts"
Does anyone know what I am doing wrong?