Forum Discussion
Variable for Assessment Attempts isn't working
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.