Group: Administrators
Posts: 13K,
Visits: 109K
|
If you want the <trial> to do something (show some sort of message upon response), you need to specify /responsemessage attributes in it.
<block alcohol> / trials = [1-10 = alcohol] </block>
<picture alcohol> / items = ("1L_1.jpg","1L_2.jpg","1L_3.jpg","1L_4.jpg","1L_5.jpg","1L_6.jpg","1L_7.jpg","1L_8.jpg","1L_9.jpg","1L_10.jpg") / select = replacenorepeat / size = (80%, 80%) </picture>
<trial alcohol> / stimulusframes = [1=alcohol, alc_categories1, alc_categories2] / showmousecursor = true / inputdevice = mouse / validresponse = (alc_categories1, alc_categories2) / responsemessage = (alc_categories1, alc_categories1_clicked, 500) / responsemessage = (alc_categories2, alc_categories2_clicked, 500) </trial>
<text alc_categories1> / items = ("Non-alcoholic beverage","Food","Non-food object") / select = replace / vposition = 50% / hposition = counter.type1pos.selectedvalue / txcolor = black </text>
<text alc_categories2> / items = ("Alcoholic beverage") / vposition = 50% / hposition = counter.type2pos.selectedvalue / txcolor = black </text>
<text alc_categories1_clicked> / items = ("Non-alcoholic beverage","Food","Non-food object") / select = text.alc_categories1.currentindex / vposition = 50% / hposition = text.alc_categories1.hposition / txcolor = red </text>
<text alc_categories2_clicked> / items = ("Alcoholic beverage") / vposition = 50% / hposition = text.alc_categories2.hposition / txcolor = red </text>
<counter type1pos> / items = (20%,80%) / select = noreplace </counter>
<counter type2pos> / items = (20%,80%) / not = (type1pos) / select = noreplace / selectionrate = always </counter>
|