Ways to Calculate Course Completion

I have a rather complicated course with 4 software scenarios. A user must pass 2 of the scenarios with 100% score to complete (pass) the course.

I have a summary results slide which gathers the results from each of the scenario result slides, and I have set it to 50% pass score. 

The problem with this method is that if a person were to get 25% on each of the 4 scenarios, it would still count as passing. 

Is there a way to have completion be based on completing 2 of the 4 scenarios rather than a total percentage? Or completion based on a variable?


5 Replies
Matthew Bibby

You can use JavaScript to send a completion message to the LMS.

You'd use triggers and variables to determine when a user should pass, then when those conditions are met send them to a page that runs the following JavaScript:

//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(90, 100, 0);
//set status; possible values: "completed","incomplete", "failed", "passed"

Keep in mind that Storyline will override this, so you'll need to change your tracking options.

I usually set Storyline to mark the module as complete when all slides are viewed and then create a new slide that the user will never be able to access.

Does that make sense?

Amber Starfire

Hi Matthew,

Thanks for your reply. I'm new to JavaScript, so let me see if I understand correctly.

Here's how the course works now: When a user passes 2 of the 4 scenarios, they are taken to the summary results slide, which presents the Success layer. (If they fail 3 of the 4, they are also taken to the summary results slide which presents a Fail layer.)

At that point, they can choose to Exit, or start the game/course over.

Can I use the Exit button to trigger the above Javascript? Or do I need to create a separate slide that storyline would navigate to, trigger the Javascript, and then exit.

I should point out that users would rarely view all slides during the course -- only if they failed the first 2 scenarios and then went through the 2nd pair. Most will likely do 2 or 3 out of the 4 scenarios.

So what should I use for tracking when I publish?

Thank you.

Amber Starfire

Okay, so I revised it to track the module as complete after viewing 50 slides (which would be the minimum number viewed to pass the first 2 scenarios), instead of using the score percentage.

Then I changed the triggers to use variables to display the winner/loser layers on the final slide.

From each of those layers, the EXIT button triggers the above javascript, with the winner slide passing along a score of 100 and "passed" and the loser slide/exit button passing along a score of 0 and "failed."

So now, at least when a person successfully completes the course, the LMS is showing the course as complete with a 100% score. However, the LMS is also showing the course as complete, even when failed. In other words, I assume Storyline is overriding the "passed/failed" status because of the number of slides viewed.

Is there any way to force the passed/failed status instead of complete?

Matthew Bibby

The issue is that Storyline is sending the completion message because the learner has viewed 50 slides. We don't want that to happen. Here is how to fix it:

  • Add a new slide to your course
  • Make sure that it is impossible for the learner to ever see that slide (i.e. no next buttons or menu item will take them there)
  • Set your reporting and tracking options in Storyline so that the learner has to view ALL of the slides

Then the inbuilt completion message will never be sent because it isn't possible for the learner to view all of the slides. So, it won't override the message sent by the JavaScript code.

Does that make sense?