I have a client that requests a draw of 3 questions from a pool of 10. The learner has to get 3 questions correct. When the learner gets a question wrong, the pool should serve up another random question. Continue until three are correct.
I speak JavaScript. Can you give me a line of code that will set score in the LMS? (I presume you are updating an SL2 variable and letting SL2 do the reporting. Right?)
ReportStatus=function(){ //since we don't want Storyline to overwrite our scoring... let's overwrite that $#it. }
and then using
//get LMS API var player=GetPlayer(); var currentscore=player.GetVar("Percentage"); var lmsAPI = parent; //set score; the first number is the score lmsAPI.SetScore(currentscore, 100, 0); if(currentscore<100){ SetStatus("incomplete"); }else{ SetStatus("completed"); }
5 Replies
Out of the box no.
It could be done using branching based on numbers correct and use javascript to set score in LMS.
Would struggle if they got to end of all 10 without getting three, may be possible just to branch back to start.
I speak JavaScript. Can you give me a line of code that will set score in the LMS? (I presume you are updating an SL2 variable and letting SL2 do the reporting. Right?)
Sam
I am disabling Storylines ability to report using
and then using
to set score and status
Thank you Sensei.
Forgot to say the disable line goes on a master slide so it is disabled on every slide
This discussion is closed. You can start a new discussion or contact Articulate Support.