Change state depending on variable

Hi there

I am trying to create a scorecard where the result of a challenge from another slide is displayed on the scorecard. From here i want the options to change depending on the score the individual gets.

e.g. learner scores 15 of 18 and the result from the scorecard is "Fail! try again"  I would apprecate it if someone would help me.

cheers

16 Replies
Jason Johnson

I think I understand what you want but let's agree on some terminology first: your scorecard = Storyline Results Slide, correct? Also, your challenge = Storyline quiz question slide, correct?

If my understanding is correct, this is easy and I've done it a lot. When you create a quiz question and a results slide, a variable is generated. Usually it's called "Results.ScorePoints" by default, I believe. On your results slide (scorecard), you just need a trigger for "Timeline Start" of your slide that controls what gets shown.

I've attached a screenshot of what that could look like. You would need one trigger for each condition (Score = 15 but less than 18, etc). You would be showing different graphics for each trigger, basically, and I think that's your goal.

Jason Johnson

I looked at your source file and you can do it with the structure you have now BUT you might as well use the built-in quiz/results slides that generate those variables and track them for you, in my opinion. If you make slide 2 into a quiz (or whatever slide you have your challenges on) and then make slide 3 your results slide, you can follow the approach I told you about.

Stuart Ryan

Jason Johnson said:

I looked at your source file and you can do it with the structure you have now BUT you might as well use the built-in quiz/results slides that generate those variables and track them for you, in my opinion. If you make slide 2 into a quiz (or whatever slide you have your challenges on) and then make slide 3 your results slide, you can follow the approach I told you about.


Thanks Jason

Is it possible to set up a quiz similar to how i have it setup on via a normal slide? I would like people to have 6 attempts at trying to find certain objects and when their number of attempts has reached 0 the scorecard is shown?

Cheers

Jason Johnson

A quiz slide can look however you want. You can convert your slide 2 into a quiz slide by just doing this "Insert>Convert to Freeform" and then pick an interaction that suits you. You can then insert a blank, graded results slide and paste your slide 3 stuff on it. You'll then be able to use that variable I spoke about. You would set slide 2's interaction to 6 attempts and then on the last attempt (Try Again layer), set up a trigger that takes you to slide 3 with their results.

Jason Johnson

I edited your file to give you an idea of what I'm talking about. I made slide 2 a quiz. I inserted a results slide that the user never sees (slide 4) and presented the score to the user on slide 3 using that variable. I added a Submit button on slide 2. You have 6 attempts to choose the right challenge icon (1 is correct) and after that, you are directed to slide 3. Not complicated but an example of what I'm talking about.

Stuart Ryan

Hi

Thanks Jason, I have taken a look and although this is good it isn't quite what I am looking for.

What I want learners to do is complete 5 challenges, each challenge you will be rewarded points for the choices you make in the challenge. In challenge 1 I want feedback to be displayed according to the score that the learner achieves, if they achieve a certain score I want the status on the scorecard to show complete, if they don't achieve the threshold I want a button to appear to say Try again.

My Challenge 1 page is working how i want it to, I would like to now get the scorecard page to record the score of challenge one and then provide the appropriate information e.g. A Risk rating (if score achieved is above # then display "low risk" else "high risk", Highest score=the highest score you can achieve, the score obtained and status being "Failed-try again" or "Success". I then want to create 4 other challenges that based on the same principle as above and to complete the module all 5 challenges needs to recieve a status of "Complete".

I would appreciate your help on this. I think it can be achieved through variables etc but It falls down when posting the score to the score card. I don't neccessarily need a quiz in this just branching and being able to reset the slide to original state if failed.

Stuart Ryan

Hi again,

I think i am close to having this how I would like. I am stuck on getting a button to change it's state. What I want to do is for the Status: Not Attempted to change to either Pass when the user achieves a score of 18, and for it to say Fail! Try again when the score is less than or equal to 15.

Everything else is working as expected but I can't get the state of the button to change depending on the score.

thanks

Ashley Terwilliger-Pollard

Hi Stuart,

Just looking at the image, it's hard to tell for certain, but I don't see the trigger associated with adjusting the pts variable? You may want to look into that element, and also check the order of your triggers as they'll fire from top to bottom. If you're still having difficulty, it may be helpful to share the Storyline file here with us so that we can take a look. 

Ashley Terwilliger-Pollard

Hi Stuart,

You'll want to adjust the triggers for slide 1.2 as currently it's set to adjust the state of your object "when the variable pts changes" but, it never changes on that slide - it's adjusted on slide 1.3. Instead, you may want to use something like "When timeline starts" or based on the state of your "Challenge 1" button being visited.