Group: Forum Members
Posts: 5,
Visits: 40
|
Hi,
I'm working on coding an anagram task where participants are asked to find as many solutions for each presented anagram. I want to include a box on the right hand side of the screen that functions as a chest of found solutions. So for example, if a participant is shown "EATHR" and they submit "HEART" as a solution, they would see "HEART" pop up on the right hand side box. This way they can keep track of the solutions they've found for each trial. I'm thinking the text element might be the best way to solve this? Wondering if anyone has any other suggestions/insights on how to go about this issue.
Below is the code I'm currently working with.
*******STIMULUS********* <text a1> /items = ("EAHTR") /position = (30, 35) /txcolor = black / size = (10%, 5%) /erase = false </text>
<text a2> /items = ("KINTH") /position = (30, 35) / size = (10%, 5%) /txcolor = black /erase = false </text>
<item answer_a1> / 1 = "earth" / 2 = "heart" </item>
<item answer_a2> / 1 = "think" </item>
<text solutions> /items = solutions /position = (30, 20) /txcolor = black / select = values.condition / erase = false </text>
<text instr> /items = ("Type 'next' to move on to the next anagram") / position = (30, 5) </text>
<item solutions> / 1 = "<%values.nsolutions%> Solutions" </item>
********TRIALS******** <openended a1> / ontrialbegin = [ values.nsolutions = 2; ] / stimulusframes = [1 = a1, solutions] /validresponse = ("next", anyresponse) / correctresponse = ("earth", "heart") / buttonlabel = "Submit" / position = (30, 50) /branch = [ if(openended.a1.response !="next")openended.a1 ] </openended>
<openended a2> / ontrialbegin = [ values.nsolutions = 1; ] / stimulusframes = [1 = a2, solutions] /validresponse = ("next", anyresponse) / correctresponse = ("think") / buttonlabel = "Submit" / position = (30, 50) /branch = [ if(openended.a2.response !="next")openended.a2 ] </openended>
<values> / condition = 0 / nsolutions = 0 </values>
|