Hi Mimiste and first of all, thank you so much for this fantastic plugin that helps Construct to be even better !
I have one question though, I'm a bit confused on how to retrieve the lesson location value.
At the start of my layout, I use these actions :
- Set LMS Value "cmi.core.lesson_location" - "L1Page1" (L stands for Lesson)
- Do LMS Commit
(I hope this is the right syntax.) So if the player leaves the lesson here, the LMS will record it.
But I am wondering how to retrieve this same value at start of the layout when the player reopens the lesson.
If I use the action ScormC2 => Set LMS Value, it opens a window with 2 input zones :
Name : Here I think I have to input : ScormC2.getLMSValue("cmi.core.lesson_location")
Value : I don't know what to input in here ... Do I have to search for the value "L1Page1" I input earlier ? If so, I would have to test each value for each page, that would be tedious ...
Hello
You can do something like that :
At the start of the layout, I set the variable LessonLocation to ScormC2.getLMSValue("cmi.core.lesson_location")
Then you can check if the variable LessonLocation is empty or not and open the right lesson