Retrieving SCO mastery score dynamically

Well, I came up with this workaround, if anyone knows of a better solution, let me know.I had a pretty typical setup, a test, and then a 'passed' and 'failed' page, which the user would be directed to based on their results. Instead of 2 pages I consolidated them into a page called 'results', with content that changes based on my own scoring function. What I changed is below.I changed this function:function action288(fn){ AICC_Lesson_Status.set('incomp lete'); if(fn) eval(fn);}(generated by Lectora's change variable action)to:function action288(fn){ var mastery = LMSGetValue("cmi.student_data.mastery_score"); if(mastery == ''){ mastery = 80; }else if(mastery == 'Null'){ mastery = 80; } //alert(mastery); if(PostTest_Score.getValue() >= mastery){ text291.actionChangeContents('Congratulations! You have completed this exercise.','alignleft','1'); AICC_Lesson_Status.set('completed'); }else{ text291.actionChangeContents('Sorry, You Did Not Pass.','alignleft','1'); AICC_Lesson_Status.set('incomp lete'); } if(fn) eval(fn);}The score as a % is also changed on the page by another function. As a final step I deleted the line 80 from 'imsmanifest.xml'.I intend on testing this a lot over the weekend, but so far it hasn't generated any errors using ADL's Test Suite.

Discussions have been disabled for this post