Baseline xAPI files for Storyline Developments. Nothing complex in these files....just the basics. Complex stuff comes later.
I want to give a huge shout out to Devlin Peck and his excellent tutorials that can be found at:
The Full Guide to xAPI and Storyline
If you are not sure what xAPI is or how to take advantage I would recommend that you start with the link above.
sendStatement("verb", "verbId", "object", "objectID", "objectDescription", "activityType");
sendStatement("verb", "verbId", "object", "objectDescription", "activity Type", "uResp[n]sl");
Note- the "uResp[n]sl" variable is the storyline variable...this variable is passed from storyline into the function. There is nothing that changes within the xapi-statment.js that will need to change.
No new parameters were added to the function.
Storyline will need two new variables:
- maxScore
- uScore
A trigger needs to be added on each correct answer to adjust uScore by 1 on each correct answer.
The trigger for the xAPI can be set to the start of the results slide.
Place on first slide with a timeline start trigger.
manageTimer.course.start();
Restart Button Trigger
manageTimer.course.reset();
Stop Timer Script
manageTimer.course.stop();
Sending Course Duration
sendStatement("verb", "verbId", "object", "objectDescription", "activity Type", "uResp[n]sl", "course")
Slide Durations
Place on a slide's timeline start trigger.
manageTimer.slide.start();
Restart Trigger use on slides 2-n
manageTimer.slide.reset();
Stop Timer Script
manageTimer.slide.stop();
Sending Slide Duration
sendStatement("verb", "verbId", "object", "objectDescription", "activity Type", "uResp[n]sl", "slide")
If we want to capture a duration of a lesson then we would need to create a lesson variable and send at the end of each lesson.