Forum Discussion

TimNeill's avatar
TimNeill
Community Member
10 years ago

Setting 'Results.ScorePoints' to equal my custom score variable

This subject seems to have been discussed for several years (which suggests a SL improvement is needed ...) but I would appreciate some guidance. 

I will have 10 custom quiz questions which can't be handled by standard SL quiz types (individual answer scoring and ticks/crosses within each question screen).

I accumulate the score from these 10 in a variable called 'My_Score'. I will also have another 30 questions which will use SL question templates and which accumulate their overall score in 'Results.ScorePoints'. 

So when I reach the Results slide I have my custom variable plus the SL 'Results.ScorePoints' variable. I can add them together with a Trigger to make 'My_Score' equal to the total score for all 40 questions but what is the simplest way to get this variable back into 'Results.ScorePoints' so that it appears in the Results and goes back to the SCORM LMS?

Could I force a 'dummy' quiz question with a data entry field to be set to the 'My_Score' value, so that the 'Results.ScorePoints' takes on this value?

 

JavaScript I don't believe can modify the 'Results.ScorePoints' variable?

Many thanks, Tim 

29 Replies