Group: Administrators
Posts: 13K,
Visits: 104K
|
You need to pair your word items / item numbers with the desired display colors. For the sake of example, suppose you have 4 words and 3 display colors -- you want to display each word in each color exactly once, i.e., you have 4 x 3 = 12 combinations:
<block myblock> / screencolor = black / trials = [1-12 = mytrial] </block>
<trial mytrial> / ontrialbegin = [values.worditemnumber = list.worditemnumbers.nextvalue; values.wordcolor = list.wordcolors.nextvalue; text.word.textcolor = values.wordcolor] / stimulusframes = [1=word] / validresponse = (57) </trial>
<text word> / items = worditems / select = values.worditemnumber / txbgcolor = black / fontstyle = ("Arial", 5%) </text>
<item worditems> / 1 = "Bird" / 2 = "Cat" / 3 = "Dog" / 4 = "Eel" </item>
<list worditemnumbers> / items = (1,1,1, 2,2,2, 3,3,3, 4,4,4) </list>
<list wordcolors> / items = (blue, green, white, blue, green, white, blue, green, white, blue, green, white) / selectionmode = list.worditemnumbers.currentindex </list>
<values> / worditemnumber = 1 / wordcolor = black </values>
<data> / columns = [date time subject group blocknum blockcode trialnum trialcode response latency correct stimulusitem values.worditemnumber values.wordcolor] / separatefiles = true </data>
|