Forum Discussion
TristanDF
2 years agoCommunity Member
Sending Points to the LMS using Javascript
I have a quiz that contains 14 free-form questions and one custom built question for a total of 15 points. Variable: customScore stores the custom question result. Variable: quiz.ScorePoints stores...
SamHill
11 months agoSuper Hero
I'm just adding this here as I'll forget about it otherwise. There is an undocumented way to access the "built in" variables in storyline.
For example, a built in variable such as Menu.Progress, can be accessed like this:
const player = GetPlayer();
// Get Menu.Progress variable from Storyline
const progress = player.GetVar('_playerVars.#menuProgress');
Use the above logic, you should then be able to access a system variable such as Results.ScorePercent in the following way:
const player = GetPlayer();
// Get Results.ScorePercent variable from Storyline
const progress = player.GetVar('_playerVars.#resultsScorePercent');
Related Content
- 9 months ago