Forum Discussion
LuisGomez-bb5a4
4 years agoCommunity Member
Register in an LMS the highest score of 2 possible attempts
Hello, I have a question, i need to register in an LMS the highest score of 2 possible attempts of a quiz, but I have not been able to do it, I only register the last score obtained, can you help me...
ScottWiley1
2 years agoCommunity Member
I haven't been doing much Storyline development for a while now. I believe you can set up custom variables to track a score. This would mean you'd have to also add custom triggers to your question submit button to set your custom variables. When it comes time to submit the results, you'll have to do a comparison of the first try score value with the second score value and whichever is larger, plug into the LMS set score call.
Oh, and one other thing, you'll also have to add a line to set completion. Usually there is a score threshold considered 'passing' so you can use that to determine if it should be set to completed.
// set passed/completed
lmsAPI.SCORM2004_SetPassed();
lmsAPI.SCORM2004_SetCompleted();