Group: Administrators
Posts: 13K,
Visits: 104K
|
You can, for example, enter your "punish" and "reward" trials into a <list> in the desired proportions and then /branch from your "main" trial(s):
<block myblock> / trials = [1-100=mytrial] </block>
<trial mytrial> / stimulusframes = [1=mytext] / validresponse = ("d", "k") / correctresponse = ("k") / branch = [list.feedbacklist.nextvalue] </trial>
<trial punishment> / stimulusframes = [1=punishtext] / validresponse = (0) / trialduration = 12000 </trial>
<trial reward> / stimulusframes = [1=rewardtext] / validresponse = (0) / trialduration = 2000 </trial>
<list feedbacklist> / items = (trial.punishment, trial.reward) / poolsize = 100 / itemprobabilities = (.75, .25) </list>
<text mytext> / items = ("Press D or K") </text>
<text punishtext> / items = (":( Wait for 12 seconds.") </text>
<text rewardtext> / items = (":) Wait for 2 seconds.") </text>
|