Hi guys,
I have a question regarding feedback assignment based on participants RTs. For each CSrew trial, I want participants to receive a correct message (+10 & sound) only when they answer correctly (''q'' press) on the CSrew trial & only if their RT is faster than 300 ms. If they answer incorrectly and/or if their RT is slower than 300 ms, I want then to receive no feedback. Also, I want them to receive block feedback that tells participants how many points they won during the current block (the final number of points should be calculated based on the RTs and correct responses to the CSrew trials).
I have attached some parts of my script below.
Any hints would be greatefully received. Thanks in advance.
Ana
++GAMETASK++
<trial CSrew>
/ pretrialpause= 700
/ trialcode = "CSrew"
/ validresponse = ("q", "s")
/ correctresponse = ("q")
/ responsemessage = ("q", correctmessage, 500)
/ responsemessage = ("q", correctnoise, 500)
/ errormessage = (errormessage, 500)
/ responsemode = timeout (1500)
/ stimulustimes = [0= kaderm, CSrew, CSrewS; 100 = eraserm, ?]
/ responseinterrupt = trial
/ posttrialpause= 700
</trial>
<trial CSneu>
/ pretrialpause= 700
/ trialcode = "CSneu"
/ validresponse = ("q", "s")
/ correctresponse = ("s")
/ errormessage = (errormessage, 500)
/ responsemode = timeout (1500)
/ stimulustimes = [0= kaderm, CSneu, CSneuS; 100 = eraserm, ?]
/ responseinterrupt = trial
/ posttrialpause= 700
</trial>
<block intro_gametask>
/ screencolor = (0,0,0)
/ preinstructions = (intro_gametask)
/ trials = [1-12 = random (CSneu, CSrew)]
/ blockfeedback = (meanlatency, correct)
</block>
**Error, ?, Correct, GOAL TASK**
<text ?>
/ numitems = 1
/ items = ("?")
/ color = (255, 0, 0)
/ txbgcolor = (247, 247, 247)
/ position = (50, 50)
/ font = ("Arial Black", -37, 700, 0, 34)
</text>
<text correctmessage>
/ numitems = 1
/ items = (" +10 ")
/ font = ("Arial Black", -107, 700, 0, 34)
/ txbgcolor = (0, 0, 0)
/ position = (50, 50)
/ color = (255, 255, 255)
< /text>
<text errormessage>
/ numitems = 1
/ items = (" FOUT! ")
/ font = ("Arial Black", -107, 700, 0, 34)
/ txbgcolor = (0, 0, 0)
/ position = (50, 50)
/ color = (255, 0, 0)
</text>