Group: Forum Members
Posts: 9,
Visits: 50
|
Hello, I've tried writing a simple script, but I couldn't solve my problem:
There are two parts of my test. In the first part I would like to show three words ("triplets") together, horizontally, thirty times. These words should appear in a random order, horizontally, The odd one (according to the instructions in the beginning of the first part) should be chosen, by clicking on b, h, or j. There are thirty word-triplets, they should come after each other, in a random order. In the second part I would like to show the same word-triplets, always in a random order horizontally, and, additionally, all thirty of them randomly after each other. The odd one (according to the instructions in the beginning of the second part) should be chosen, by clicking on b, h, or j.
I managed to write something like this, but I cannot figure out how to write the three words inside the triplets randomly horizontally.
Can you help me?
Thank you, Erzsebet
************************************************* Creating Text Stimuli *************************************************
<text firstwordtriplets> / items = firstwordtriplets </text>
<item firstwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item>
<text secondwordtriplets> / items = secondwordtriplets </text>
<item secondwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item>
<text bkey> / items = ("press B if the left word is the odd one out") / position = (25, 75) / txcolor = (0, 0, 255) </text>
<text hkey> / items = ("press H if the middle word is the odd one out") / position = (50, 75) / txcolor = (0, 0, 255) </text>
<text jkey> / items = ("press J if the right word is the odd one out") / position = (75, 75) / txcolor = (0, 0, 255) </text>
************************************************* Creating Instructions *************************************************
<page intro> ^^^^^^^^Odd one out 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page>
<page first> ^^^^^^^^First part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page>
<page second> ^^^^^^^^^^Second part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page>
<page end> ^^^^^^ end ^^^^^^^^ thank you </page>
<instruct> / nextkey = ("h") </instruct>
************************************************* Creating Trials *************************************************
<trial firstwordtriplets> / validresponse = ("b", "h", "j") / stimulusframes = [1=firstwordtriplets] </trial>
<trial secondwordtriplets> / validresponse = ("b", "h", "j") / stimulusframes = [1=secondwordtriplets] </trial>
************************************************* Creating Blocks *************************************************
<block first> / trials = [1-3 = noreplace(firstwordtriplets)] / preinstructions = (first) / bgstim = (bkey, jkey, hkey) </block>
<block second> / trials = [1-3 = noreplace(secondwordtriplets)] / preinstructions = (second) / bgstim = (bkey, jkey, hkey) </block>
************************************************* Creating an Expt *************************************************
<expt> / preinstructions = (intro) / postinstructions = (end) / blocks = [1=first; 2=second] </expt>
<defaults> / screencolor = (175, 175, 255) / fontstyle = ("Courier New", 14pt) </defaults>
|