Skip to main content
Inspiring
September 20, 2022
Answered

D&D with multiple target AND single target - how to???

  • September 20, 2022
  • 2 replies
  • 1241 views

Hi folks,

I´m trying to build a bit of a complex D&D, where I have two target areas and a bunch of drop items, but some of the drop items go to both of the target areas and some only to one of the target areas! I´v tried many things, but in the result I´m only getting a "all to all" or "this one here and that one there". 

 

Is there a way to combine multiple and single targets?

 

Thanks in advance!

    This topic has been closed for replies.
    Correct answer Sasha*

    Thanks for your comment on my blog, I wished to get more comments in the blog itself. Although I can see Google analytics for the views (which can be very impressive), it remains a mystery to me if the posts have any real learning effect.

     

    You need to create multiple correct answers, it is impossible to have all combinations in one answer. You are on the German version (I understand German pretty well, but dare not to write because I hate to commit errors in 'grammatik).

     

    Each answer can have only one combination: guessing now for four possible correct answers:

    1.  patty_1 to pan, patty_2 to bun, tomato to bun
    2.  patty_2 to pan, patty_1 to bun, tomato to bun
    3. patty_1 to pan, patty_2 to pan, tomato to bun
    4.  patty_2 to bun, patty_1 to bun, tomato to bun

     You add a new answer using the button 'Neue Antwort Hinzufügen'. The combination you created is impossible to create all the drag actions before submitting. Hope this clarifies. Is the D&D used as Knowledge or as Scored question?

    Unless you are a skilled JS programmer, why not use the provided features of Captivate. StagPrime solves everything with JS programming, rarely with CP features. Perfectly possible and to be appreciated.

     


    Dear Lilybiri,

    thanks for the hint to comments on your Blog, I will take that to my heart.

     

    I've tried as you suggested the option "Add New Answer", but that did'nt work either. No matter what I defined as second, third or fourth answer, it takes only the first set of answers as correct, all others are scored as wrong.

     

    BUT ... by accident to be honest I found the solution!! The patties (drag objects) can be "grouped" (via "Add to" in the D&D options pallette) and when setting the correct answers I was able to tell the patty group to be correct in the pan as well as in the bun 😃 while the tomatoe only goes to the bun. Yeah!!

     

    So thanks to you and thanks to Stagprime for all your help, advises, hints and time. God bless you 😘

    2 replies

    Stagprime2687219
    Brainiac
    September 20, 2022

    Personally, I would utilize the Object Actions dialog and code the behaviour of each drag source to the targets.

    Lilybiri
    Brainiac
    September 20, 2022

    Using JavaScript maybe. Not with the built in Capivate features, sorry.

    Object actions are very powerful, have lot of use cases of them on my blog. But this use case?

    https://blog.lilybiri.com/drag-and-drop-actions

     

    Stagprime2687219
    Brainiac
    September 20, 2022

    Why not?

    This case could go a few ways as I see it depending on some additional details.

    The single object with two correct locations...

    • Could accept at either location and be correct.
    • Must be present at both locations to be correct (stacking duplicates)

     

    Are incorrect answers accepted or rejected?

    Are drag sources allowed to be moved once dropped?

     

    I would likely use some variables to track locations and points, if any, until the submit button was pressed.

    Lilybiri
    Brainiac
    September 20, 2022

    It could be done but you will have to create a ton of possible correct answers, and that is rather time consuming work. 

    Sasha*Author
    Inspiring
    September 20, 2022

    😄

     

    Thought so ... But I guess I´ll give it a try ... So, could you give me a hint, please? 

     

    Let´s say:

    • Drag "A" belongs to area "1" and area "2"
    • "B" belongs only to "2"

    How many possible correct answers could this need?

    Sasha*AuthorCorrect answer
    Inspiring
    September 23, 2022

    Thanks for your comment on my blog, I wished to get more comments in the blog itself. Although I can see Google analytics for the views (which can be very impressive), it remains a mystery to me if the posts have any real learning effect.

     

    You need to create multiple correct answers, it is impossible to have all combinations in one answer. You are on the German version (I understand German pretty well, but dare not to write because I hate to commit errors in 'grammatik).

     

    Each answer can have only one combination: guessing now for four possible correct answers:

    1.  patty_1 to pan, patty_2 to bun, tomato to bun
    2.  patty_2 to pan, patty_1 to bun, tomato to bun
    3. patty_1 to pan, patty_2 to pan, tomato to bun
    4.  patty_2 to bun, patty_1 to bun, tomato to bun

     You add a new answer using the button 'Neue Antwort Hinzufügen'. The combination you created is impossible to create all the drag actions before submitting. Hope this clarifies. Is the D&D used as Knowledge or as Scored question?

    Unless you are a skilled JS programmer, why not use the provided features of Captivate. StagPrime solves everything with JS programming, rarely with CP features. Perfectly possible and to be appreciated.

     


    Dear Lilybiri,

    thanks for the hint to comments on your Blog, I will take that to my heart.

     

    I've tried as you suggested the option "Add New Answer", but that did'nt work either. No matter what I defined as second, third or fourth answer, it takes only the first set of answers as correct, all others are scored as wrong.

     

    BUT ... by accident to be honest I found the solution!! The patties (drag objects) can be "grouped" (via "Add to" in the D&D options pallette) and when setting the correct answers I was able to tell the patty group to be correct in the pan as well as in the bun 😃 while the tomatoe only goes to the bun. Yeah!!

     

    So thanks to you and thanks to Stagprime for all your help, advises, hints and time. God bless you 😘