Forum Discussion
Partial points Quizz storyline
- 2 months ago
In my second example, I used Storyline's built-in score variable, but not with the intention of modifying it directly. Even if it were possible to hard-code changes to it, doing so would likely cause unintended side effects in the overall scoring. I don't recommend altering it manually.
My goal was to demonstrate an alternative approach for assigning partial points to your interaction allowing you to take full advantage of the built-in score variable. Storyline automatically calculates the total score based on the points assigned to each choice in the interaction, and this ensures proper score reporting to your LMS.
Custom variables cannot be reported to an LMS unless they're passed through a built-in numeric graded question. You can assign the value of your custom variable to a numeric question variable, which can then be reported to the LMS, reflecting the value of your custom logic.
Check this post for reference. It even includes a JavaScript solution for setting the overall score sent to the LMS directly, based on your custom total points. Story files are also available for download. Let me know if you need further help, but please make sure to clearly explain your specific scenario and the current logic you're using in your slides.
Thanks a lot for your help!
I solve the issue with this javascript on my last slide and it works on my LMS.
var player = GetPlayer();
var score = player.GetVar("totalScorePercent");
var passingScore = 80;
SetScore(score, 100, 0);
if (score >= passingScore) {
SetPassed();
} else {
SetFailed();
}
SetStatus("completed");
Related Content
- 5 months ago
- 8 months ago
- 9 months ago
- 7 months ago