Hi, I want to create a block in which participants are presented with a word (either green or red). If a green word appears (Fillercue2_R), and participants fail to click '1' before the timeout, the correct associated word should appear in blue (Fillertarget2_R). For some reason, this code is not working. It says - "parameter is out of range", but I do not understand why.
Any help is appreciated, thanks!
This is my code (not running!):
<defaults>
/canvasaspectratio = (4,3)
/minimumversion = "6.2.1.0"
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/txbgcolor = white
/ txcolor = black
/ screencolor = white
/ inputdevice = mouse
</defaults>
<parameters>
/wordHeight = 5%
/phase1incorrect = 2500
/phase2Timeout = 5000
</parameters>
<data>
/ columns = (
values.index_FillercuewordS, values.FillercuewordS,
values.index_FillercuewordR, values.FillercuewordR, values.index_FillerrecallwordR, values.FillerrecallwordR)
</data>
<values>
/index_FillercuewordS = 0
/index_FillercuewordR = 0
/index_FillerrecallwordR = 0
/FillercuewordS = ""
/FillercuewordR = ""
/FillerrecallwordR = ""
</values>
<item Fillercue_S>
/ 1="BOND"
/ 2="GARAGE"
</item>
<list Fillercuelist_S>
/ poolsize = 2
/ replace = false
/ selectionmode =random
/ selectionrate = always
</list>
<item Fillercue_R>
/ 1= "ACID"
/ 2= "PRIZE"
</item>
<list Fillercuelist_R>
/ poolsize = 2
/ replace = false
/ selectionmode =random
/ selectionrate = always
</list>
<item Fillertarget_R>
/ 1= "DYNAMITE"
/ 2= "QUIZ"
</item>
<list Fillertargetlist_R>
/ poolsize = 2
/ selectionmode = list.Fillercuelist_R.currentindex
</list>
<text Fillercue2_S>
/ items = ("<%item.Fillercue_S.item(values.index_FillercuewordS)%>")
/ position = (49%, 50%)
/ fontstyle = ("Arial", parameters.wordHeight, true, false, false, false, 5, 1)
/ color = red
/ vjustify = center
</text>
<text Fillercue2_R>
/ items = ("<%item.Fillercue_R.item(values.index_FillercuewordR)%>")
/ position = (49%, 50%)
/ fontstyle = ("Arial", parameters.wordHeight, true, false, false, false, 5, 1)
/ color = green
/ vjustify = center
</text>
<text Fillertarget2_R>
/items= ("<%item.Fillertarget_R.item(values.index_FillercuewordR)%>")
/ position = (49%, 50%)
/ fontstyle = ("Arial", parameters.wordHeight, true, false, false, false, 5, 1)
/ color = blue
/ vjustify = center
</text>
<trial phaseII_FillerRPair>
/ pretrialpause = 200
/ stimulusframes = [1 = Fillercue2_R]
/ recorddata = false
/ inputdevice = keyboard
/ errormessage = true(Fillertarget2_R, 2500)
/timeout = parameters.phase2Timeout
/ validresponse = ("1", 0)
/ correctresponse = ("1")
</trial>
<trial phaseII_FillerSPair>
/ pretrialpause = 200
/ stimulusframes = [1 = Fillercue2_S]
/ recorddata = false
/ inputdevice = keyboard
/timeout = parameters.phase2Timeout
/ validresponse = ("1", 0)
/ correctresponse = ("")
</trial>
<block practiceII>
/ trials = [1-2 = noreplace(trial.phaseII_FillerRPair, trial.phaseII_FillerSPair)]
</block>
<expt>
/ blocks = [
1 = practiceII
]
</expt>