By JuliaNo - 2/15/2017
Hello! I want to ask people a number of questions, and if they answer correctly 5 times in a row, the questions end. If they keep giving wrong answers, they will get more questions. I used the / correctresponse element, but it doesn't seem to match the question and response (so if item 1 from the questions is asked, it does not recognize that item 1 from the answers would be correct). How do I fix this?
Also, while I am at it... I would like to add a feedback-message after their answer, telling them if their answer is correct or not. How do I do that? Thanks already!
<item QuizQuestionItem> /1 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 10 tokens." /2 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 0 tokens." /3 = "Imagine, you are Player A and decide to give 3 tokens. Player B gives 0 tokens." /4 = "Imagine, you are Player A and decide to give 7 tokens. Player B gives 10 tokens." /5 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 2 tokens." /6 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 8 tokens." /7 = "Imagine, you are Player A and decide to give 8 tokens. Player B gives 7 tokens." /8 = "Imagine, you are Player A and decide to give 2 tokens. Player B gives 3 tokens." /9 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 5 tokens." /10 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 9 tokens." /11 = "Imagine, you are Player A and decide to give 9 tokens. Player B gives 5 tokens." /12 = "Imagine, you are Player A and decide to give 1 tokens. Player B gives 1 tokens." </item>
<item QuizCorrectAnswer> /1 = "20" /2 = "10" /3 = "7" /4 = "23" /5 = "14" /6 = "16" /7 = "16" /8 = "14" /9 = "15" /10 = "23" /11 = "11" /12 = "11" </item>
<text QuizScenario> /items = QuizQuestionItem / position = (50, 30) </text>
<text QuizCorrectAnswer> /items = QuizCorrectAnswer </text>
<openended QuizQuestion> / stimulusframes= [1=QuizScenario; 2=initialstext] / position = (50, 50) / size = (60,20) / charlimit = 2 / linelength = 40 / numlines = 3 / mask = positiveinteger / correctresponse= (QuizCorrectAnswer) / validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30") / branch=[if (openended.QuizQuestion.correctstreak >= 5) notrial] / branch=[if (openended.QuizQuestion.correctstreak < 5) openended.quizquestion] </openended>
<text initialstext> /items = ("How many tokens do you have at the end of this round?") /fontstyle = ("Calibri", 16pt) /position = (50,40) /txbgcolor = (transparent) /halign = center /select = sequence </text>
<block Quiz> / trials = [1= IntruQuiz; 2-31=QuizQuestion] </block>
|
By Dave - 2/15/2017
+xHello! I want to ask people a number of questions, and if they answer correctly 5 times in a row, the questions end. If they keep giving wrong answers, they will get more questions. I used the / correctresponse element, but it doesn't seem to match the question and response (so if item 1 from the questions is asked, it does not recognize that item 1 from the answers would be correct). How do I fix this? Also, while I am at it... I would like to add a feedback-message after their answer, telling them if their answer is correct or not. How do I do that? Thanks already! <item QuizQuestionItem> /1 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 10 tokens." /2 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 0 tokens." /3 = "Imagine, you are Player A and decide to give 3 tokens. Player B gives 0 tokens." /4 = "Imagine, you are Player A and decide to give 7 tokens. Player B gives 10 tokens." /5 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 2 tokens." /6 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 8 tokens." /7 = "Imagine, you are Player A and decide to give 8 tokens. Player B gives 7 tokens." /8 = "Imagine, you are Player A and decide to give 2 tokens. Player B gives 3 tokens." /9 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 5 tokens." /10 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 9 tokens." /11 = "Imagine, you are Player A and decide to give 9 tokens. Player B gives 5 tokens." /12 = "Imagine, you are Player A and decide to give 1 tokens. Player B gives 1 tokens." </item> <item QuizCorrectAnswer> /1 = "20" /2 = "10" /3 = "7" /4 = "23" /5 = "14" /6 = "16" /7 = "16" /8 = "14" /9 = "15" /10 = "23" /11 = "11" /12 = "11" </item> <text QuizScenario> /items = QuizQuestionItem / position = (50, 30) </text> <text QuizCorrectAnswer> /items = QuizCorrectAnswer </text> <openended QuizQuestion> / stimulusframes= [1=QuizScenario; 2=initialstext] / position = (50, 50) / size = (60,20) / charlimit = 2 / linelength = 40 / numlines = 3 / mask = positiveinteger / correctresponse= (QuizCorrectAnswer) / validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30") / branch=[if (openended.QuizQuestion.correctstreak >= 5) notrial] / branch=[if (openended.QuizQuestion.correctstreak < 5) openended.quizquestion] </openended> <text initialstext> /items = ("How many tokens do you have at the end of this round?") /fontstyle = ("Calibri", 16pt) /position = (50,40) /txbgcolor = (transparent) /halign = center /select = sequence </text> <block Quiz> / trials = [1= IntruQuiz; 2-31=QuizQuestion] </block> You must use the /iscorrectresponse attribute, *not* /correctresponse. You must also properly *pair* the QuizScenario and QuizCorrectAnswer elements for this to work.
|
By Dave - 2/15/2017
+x+xHello! I want to ask people a number of questions, and if they answer correctly 5 times in a row, the questions end. If they keep giving wrong answers, they will get more questions. I used the / correctresponse element, but it doesn't seem to match the question and response (so if item 1 from the questions is asked, it does not recognize that item 1 from the answers would be correct). How do I fix this? Also, while I am at it... I would like to add a feedback-message after their answer, telling them if their answer is correct or not. How do I do that? Thanks already! <item QuizQuestionItem> /1 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 10 tokens." /2 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 0 tokens." /3 = "Imagine, you are Player A and decide to give 3 tokens. Player B gives 0 tokens." /4 = "Imagine, you are Player A and decide to give 7 tokens. Player B gives 10 tokens." /5 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 2 tokens." /6 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 8 tokens." /7 = "Imagine, you are Player A and decide to give 8 tokens. Player B gives 7 tokens." /8 = "Imagine, you are Player A and decide to give 2 tokens. Player B gives 3 tokens." /9 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 5 tokens." /10 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 9 tokens." /11 = "Imagine, you are Player A and decide to give 9 tokens. Player B gives 5 tokens." /12 = "Imagine, you are Player A and decide to give 1 tokens. Player B gives 1 tokens." </item> <item QuizCorrectAnswer> /1 = "20" /2 = "10" /3 = "7" /4 = "23" /5 = "14" /6 = "16" /7 = "16" /8 = "14" /9 = "15" /10 = "23" /11 = "11" /12 = "11" </item> <text QuizScenario> /items = QuizQuestionItem / position = (50, 30) </text> <text QuizCorrectAnswer> /items = QuizCorrectAnswer </text> <openended QuizQuestion> / stimulusframes= [1=QuizScenario; 2=initialstext] / position = (50, 50) / size = (60,20) / charlimit = 2 / linelength = 40 / numlines = 3 / mask = positiveinteger / correctresponse= (QuizCorrectAnswer) / validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30") / branch=[if (openended.QuizQuestion.correctstreak >= 5) notrial] / branch=[if (openended.QuizQuestion.correctstreak < 5) openended.quizquestion] </openended> <text initialstext> /items = ("How many tokens do you have at the end of this round?") /fontstyle = ("Calibri", 16pt) /position = (50,40) /txbgcolor = (transparent) /halign = center /select = sequence </text> <block Quiz> / trials = [1= IntruQuiz; 2-31=QuizQuestion] </block> You must use the /iscorrectresponse attribute, *not* /correctresponse. You must also properly *pair* the QuizScenario and QuizCorrectAnswer elements for this to work. See e.g. this example here: https://www.millisecond.com/forums/FindPost11482.aspx
|
|