Thank you for that introduction to passing variables to the LMS. I think the built in Set SCORM Data is the easiest way to go. I tested out a 3D Sim package in Moodle with your instructions on how to pass in variables and it worked and it all seemed so simple. However, when I tried to pass in more variables, it all stopped working.
I hope you can help me out with some SCORM basics. I found a Run Time Reference chart (Valid SCORM elements) at: http://www.scorm.com/scorm-explained/technical-scorm/run-time/run-time-reference/
and I saw the standard cmi function calls. You used cmi.core.lesson_status, and cmi.core.score.max, and cmi.core.score.min and I was also able to pass these data to the LMS successfully. However, I tried to pass more variables using cmi.objectives.n.score.raw function but with no success. I am planning on having quite a few variables to track and I assume that it is possible, but I can't figure it out. I tried replacing the "n" in the function with a number to increment them like: cmi.objectives.1.score.raw, cmi.objectives.2.score.raw, cmi.objectives.3.score.raw ... but that didn't work. How would I pass in say variables called score01, score02, score03, ... score_n? I am terribly sorry to bother you with these SCORM questions. Any advice would be greatly appreciated.