Forum Discussion
Is there a way to score each individual match of a drag and drop?
I am using the matching drag and drop and there are four terms and definitions. In the "edit matching drag and drop" I see score by question, but I assume that is the total - so they would get 10 points if correct and 0 if they even get one wrong? Is there any way to give them partial credit - like if they get 2 out of the 4 matches correct?
Thank you!!
38 Replies
- KevinThornSuper Hero
Hi Kristen,
You're correct in the default Storyline drag and drop interactions are limited to some degree.
There is a way to handle what you're wanting to do with a little variable finesse.
Start with a blank slide and build all your assets first (objects). Assign which ones will be drag items and which ones will be their drop targets by naming them in the Timeline. i.e. Drag 1, Drag 2, etc. and Drop 1, Drop 2, etc. Naming them in the Timeline will help later when you set up the interaction and assign variables.
Next, create a set of numeric variables for the Drag items with the same names: Drag1, Drag2, etc. Set their initial values to 0. Finally, create one last variable for Total with an initial value of 0.
Now, convert your slide to Freeform Drag and Drop. The default dialog box will appear and simply set which Drag item belongs to which Drop target. Make any other adjustments you need and Save and Close.
Now the fun part. For each drag item that gets dropped on a "correct" target add a trigger: Adjust Variable [Drag1] to =Assignment 1.00 when the user Drops Object On [Drop1]. Do the same for each Drag item.
Finally, on each of the feedback layers add your variable text box for Total - %Total%. Add triggers for when the Timeline Starts on that layer: Adjust Variable "Total" +Add "Drag1" when Timeline Starts.
Okay, I may have missed something just firing from thought, but I believe the above structure will get you going in the right direction. There is so much more you can build off that structure, too like visual check marks and red Xs to visually show the actual correct and incorrect choices. Just use the same variables to change the states of other objects.
Hope that help!
- RebeccaFleischCCommunity Member
Hi Kevin and Kristin,
Tx for the question, and the answer.
Directions were spot on Kevin. I'm attaching a sample here in case Kristin or anyone wants to take a look. Also, though, I have a question:
The total points are not, by default, picked up by the Results Slide. I know how to "get them there," and I have, for the attached (in red on the Results Slide).
But, would they be picked up by an LMS?
And what about the percent score? More triggers and variables, eh?
- CarmenAkerlundCommunity Member
Hi Rebecca, I've followed your demo exactly for a drag and drop interaction that I want to get individual scores for. But when I click submit I only get the "incorrect" flag but it doesn't show the individual scores like it does on your demo...is there something I have to do to make that show up that's not specifically mentioned in yours or Kevin's explanation?
- victoriaHarris1Community Member
Hi Kevin, Many thanks for these excellent instructions. I have fallen down a bit at the end though as I am a newbie at variables. Can you help please?
It all seemed to be working okay except for the last bit: when I created a variable text box for %Total% it just showed a 1. Am I meant to make a trigger for each drag item eg Timeline Starts on that layer: Adjust Variable "Total" +Add "Drag1" when Timeline Starts; then the same for Drag2 and so on?
Thanks!
- KevinThornSuper Hero
Hey Rebecca,
Your example didn't alter the results rather you added another level of detail to the existing scoring mechanism. If you run your example and get them all correct, the results slide shows your 10 points along with the breakdown of each choice - plus, the default Results.ScorePoints.
Results.ScorePoints is a default variable that's added to your variable library when you inserted a Results slide. If you were to add a second Results slide to your example, another variable would be created as: Results1.ScorePoints
When you publish to LMS or AO, and set the Scoring and Tracking option to track against a Results Slide rather than minimum number of slides viewed, SCORM picks up these variables and sends to the LMS:
- Results.ScorePoints
- Results.ScorePercent
- Results.PassPoints
- Results.PassPercent
All of the above are dependent on whether the LMS accepts them however. IN short, no you don't have to do anything additional for that example to work on an LMS. I say that, but as sure as just wrote that it won't work.
Pretty sure it's fine though.
What you *could* do is use that default variable and tie it in with your other scoring. First, go into the edit mode of the interaction and make sure there are no weighted points associated with Correct or Incorrect.
Then, do the same triggers and logic to add your choice points to "Total" but instead add them to the existing "Results.ScorePoints" variable. Example on your Correct feedback layer: "Add Almond to Results.ScorePoints when Timeline starts."
- KristinAugustaCommunity Member
Thanks, Kevin! I haven't touched variables yet. Still a newbie and amazed at what I can do with the timeline, states, triggers and layers. So, now I'll try this and I am sure I'll be wowed! Thanks again!
- KevinThornSuper Hero
You're welcome!
- RebeccaFleischCCommunity Member
Hi Kevin,
Thanks for responding. I'm hoping you can explain/correct what I'm doing wrong.Where I Am
I understand that I didn't alter the original and I'm aware that the results slide "by default" has these built-in variables:
Results.PassPercent, Results.PassPoints, Results.ScorePercent,
Resuts.ScorePoints
And I saw that if I got all 4 parts correct, I received the total score of 100%/10 points from the built-in variable and if I got even one of the 4 wrong I rec'd the total score of 0%.Where I Want to Be
But I'd want the one correct, so 2.5 points, handed off to the LMS. And I didn't think the Total that I'd created would be handed off. You've suggested
<<go into the edit mode of the interaction and make sure there are no weighted points associated with Correct or Incorrect.>>
Do you mean Edit the Quiz so there are no points listed for correct and incorrect?
And: <<do the same triggers and logic to add your choice points to "Total" but instead add them to the existing "Results.ScorePoints" variable. Example on your Correct feedback layer: "Add Almond to Results.ScorePoints when Timeline starts.">>
I don't seem to be able to do this. When I click the Adjust variable drop-down, Results.ScorePoints doesn't display there. I can do the opposite, I can Add Results.ScorePoints to Almonds, but that's not right!
Can you tell me how I'd do this? TIA!
- KevinThornSuper Hero
Ah, I see.
Shooting from the hip I realized my original solution is not a solution at all. You can assign Results.ScorePoints to Total but not the other way around. The default variables are not in the list to "Adjust."
As for passing the points to the LMS, there in lies the problem because the interaction only scores per question, not per choice. For direct user feedback showing which choices were correct and/or incorrect his will work. Overall the points scored is for the whole question/interaction.
Since there's no current way to alter Results.ScorePoints from within Storyline, I'm afraid your stuck with the weighted amount you assign per question. It is a great feature request though as it would open up a lot more options in now to pass a score to an LMS.
From an instructional design approach you could send the learners down a different path if they got it incorrect. Exact same interaction but with a lesser weighted score. Then converge back to the same Results slide. Correct = 20 points. Incorrect = 10 points. Or something like that.
If there are any SCORM gurus here that know how to manipulate the the output files in conjunction with javascript, that *might* be an alternative option.
Sorry I took you down a dead end journey.
- RebeccaFleischCCommunity Member
Hi Kevin,
PLEASE don't be sorry. I'm SO glad that I totally get it and wasn't wrong or confused at the outset
. Yeah, me :-)
And thanks for taking the time to reply, and in such detail, thinking it through with me, so to speak, rather than just saying, "oops, I was wrong - sorry." That would have left me hangin' a bit. This way I totally get that I totally get it.
It may be that all Kristin wanted was a way to provide direct Learner feedback and not pass it through to the LMS. But I know when I first got involved with Storyline, I wasn't aware of some of these things. So, thought I'd ask.
Thanks again, Kevin. Have a nice evening.
- KevinThornSuper Hero
You're welcome. Glad I could help....I think
- ShaileshMewadaCommunity Member
Hi,
I am having the same requirement. The scoring should be based on the correct responses and not for the entire question of Drag-n-Drop.
I have implemented the following workaround and it is working fine.
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") <thanks,
Shailesh