variables, triggers, drag and drop
Jul 16, 2014
By
Jean Crane
I am doing a freeform drag and drop. I have 2 drop boxes and 10 items to drag. In each of the boxes there may be one or more correct answers. I am trying to total the correct answers. If I have 3 out of 4 correct answers I want to get the correct amount of points. I have assigned a value of 0 to a variable called Total. I have added a trigger to add 1 to total when he user drops a shape on the correct drop box. But when I go to the results slide I don't have any totals for anything. Maybe I'm not showing the correct thing on the results slide. Help please. Thanks
5 Replies
Jean, The results slide pulls the total number of points earned automatically as shown in this image from the Drag and Drop Question Wizard. Other types of items sometimes allow points per item, but I don't think that's an option with Drag and Drop - Freeform.
I think you could achieve what you want by doing the following:
This would get really unwieldy if you did this type of thing for multiple slides, but might be worth it in your case.
I am able to create the variable total and show the output using %Total% in the result slide. What I'm trying to do is get the % of correct to show and can't figure that out. Suggestions.
%Results.ScorePoints% might get it. Depends on what you want to track.
Hi Jean - To get what you want, as I understand it, you'll have to do a little math.
I have attached a quick and very ugly .story file illustrating the combination of both my posts. The thing works, but there are a couple of issues with mine that you should note:
Let me know how this works.
Thank you, Robert, for you detailed explanation, but especially for your sample file. Once I was able to get in there and play around in the file, I was finally able to figure it out (although it admittedly took me some time).
However, I'm assuming with these changes, we cannot have the LMS track the completion results by the results slide, correct?
I did find some code in another thread (https://community.articulate.com/discussions/articulate-storyline/is-there-a-way-to-score-each-individual-match-of-a-drag-and-drop) for a workaround, but it didn't look like it'd been tested and confirmed within the thread by others:
In story.html file,
ResizeBrowser(g_strBrowserSize);
var player = GetPlayer() <
In lms/SCORMFunctions.js (SCORM 1.2)
function SCORM_SetScore(intScore, intMaxScore, intMinScore){
intScore = parent.scormdriver_content.player.GetVar("MyScore") <
While it's on my list to learn, I don't know any javascript at this point. Does anyone know if this code would work? Anything specific I'd need to switch out to reference my variables I created for the partial scoring drag and drop?
Thanks!
This discussion is closed. You can start a new discussion or contact Articulate Support.