Variable for Assessment Attempts isn't working

Apr 06, 2023

Since I never got a follow-up in the last thread for my issue, I'm just going to post this again. As you can see, I tried to make sure that the number of attempts (connected to the variable Attempts) registers every time the learner clicks the customized Submit button.

However, for whatever reason, on the results slide, the course won't go to the failure-review even though I created the trigger to go there once they failed and the attempts have hit the value of 2 (attempted twice).

What am I doing wrong here?

3 Replies
Edward Agadjanian

Storyline really is so intuitive. You can find every possible way to create a trigger to try to circumnavigate the obtuse design, and what you want to happen still won't work. I've tried so many different triggers to show the layer when the attempts are at 2, but alas, Storyline does not want to recognize it...

John Morgan

Hi Edward,

Thanks for reaching out about your issue with having your failure-review layer not appear after a learner has attempted the quiz twice. I have opened a support case for this issue on your behalf. You may have seen the support email that was sent. Our support engineers will be in contact soon to help you through this issue.

If there's anything else you need, don't hesitate to ask!

Walt Hamilton

I think the reason you were confused by Judy's answer to your last post is that she gave you general principles. Then she gave a reference with specific details, but for only one slide. She failed to point out, and you failed to notice that, so you applied the actions to all of your slides.

Then in this post, you attached a project. Being able to actually see what's going on is a big help in trouble shooting.
You have some nice design here, and are almost there.
There are two problems. One is that there is some corruption going on with the interaction between the feedback layers and the result.scorepercent variable, which is referenced on each of the layers. In your posted sample, that keeps the layers from even opening. When I rebuilt the slide and layers, that took care of the problem.

The other problem is that every slide resets the attempts variable, so the second time through, when you get to the last question on the second try, it registers 0 attempts. The variable should come to the quiz the first time already set to 0 (Judy's suggestion to use the default value is a good one.) It should be changed only when the learner finishes the quiz. Add one to it and check it to see if it is 2, and if it is, show the second failure layer. see the attached sample.


The only time you would set it to 0 is if you have another, different quiz and you want to use the same variable (not a best practice) to track the number of attempts on it. Then you would set it to 0, but someplace before the quiz, not in it.
I don't say this to be mean, in fact I intend it as help. In this, and your other posts to the forum I sense a great deal of frustration with learning StoryLine. Believe me, we all have experienced that. It can be less frustrating if you change your internal narration. Instead of saying something like, "SL is so stupid", or "It's Storyline's fault", try telling yourself, "I haven't learned to do this yet.", or "I WILL learn how to do this." Let those positive ideas replace anger and frustration if you can.

In her second response to your other post, Judy offered some pretty good tips.

Think through exactly what you want to happen and when.

Think not what you want the learner to see, but what steps the system has to take for the learner to see what you want. Details (very small, very sequential, very specific details) are important.

For testing variables, insert a text box with the variable reference. That lets you check whether its value is adjusting as expected. When you're done testing, either hide or delete that text box.

Remember that triggers run in the order that they appear. And triggers will only run when they appear before any trigger that jumps to another slide.

There was one example of this in the sample. It might have been nothing more that a typo from putting the sample together in a hurry, but once a jump is initiated, no trigger that follows it in the trigger order will be executed.

Keep working, you can learn to use SL, even if it is a long and painful process.