Hi Dave,
This is great advice. When inserting this into the script where would you put it? (I am sorry if this is really obvious it is my first time working with a program like this).
<trial choice>
/ ontrialbegin = [values.countchoice += 1]
/ ontrialbegin = [values.pumpresult = list.pumpresult.nextvalue]
/ontrialbegin = [if (values.pumpsound == 1) trial.choice.insertstimulustime(sound.inflatesound,0)]
/ontrialbegin = [values.pumpsound = 0]
/ stimulustimes = [1=collectbutton, balloon, pumpbutton, totalearnings, pumpcount, potentialearnings, ballooncount]
/ inputdevice = mouse
/ validresponse = (collectbutton, pumpbutton)
/ monkeyresponse = ("collectbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton",
"pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton")
/ ontrialend = [if (trial.choice.response == "pumpbutton" && values.countchoice == 1)
values.timebefore1stpump = trial.choice.latency ]
/ ontrialend = [if (trial.choice.response == "pumpbutton" && values.countchoice > 1)
{values.timebtwpumps = trial.choice.latency;
values.sum_timebtwpumps += values.timebtwpumps }]
/ ontrialend = [if (trial.choice.response == "collectbutton" && values.countchoice == 1)
values.timebeforecollectwithoutpump = trial.choice.latency ]
/ ontrialend = [if (trial.choice.response == "collectbutton" && values.countchoice > 1)
values.timebtwlastpumpandcollect = trial.choice.latency ]
/ ontrialend = [if (trial.choice.response == "pumpbutton") picture.balloon.width += values.balloonsizeincrement]
/ ontrialend = [if (trial.choice.response == "pumpbutton")picture.balloon.height += values.balloonsizeincrement]
/ ontrialend = [if (trial.choice.response == "pumpbutton")shape.blank.width = picture.balloon.width]
/ ontrialend = [if (trial.choice.response == "pumpbutton")shape.blank.height = picture.balloon.height]
/ ontrialend = [if (trial.choice.response == "pumpbutton")values.pumpcount += 1]
/ ontrialend = [if (trial.choice.response == "pumpbutton")values.totalpumpcount += 1]
/ ontrialend = [if (trial.choice.response == "pumpbutton" && values.ballooncount < 11) values.totalpumpcount_10 += 1]
/ ontrialend = [if (trial.choice.response == "pumpbutton" && values.ballooncount > 10 && values.ballooncount <21 ) values.totalpumpcount_20 += 1]
/ ontrialend = [if (trial.choice.response == "pumpbutton" && values.ballooncount > 20 && values.ballooncount <31 ) values.totalpumpcount_30 += 1]
/ ontrialend = [if (trial.choice.response == "pumpbutton" && values.pumpcount >1) values.mean_timebtwpumps = values.sum_timebtwpumps / (values.pumpcount-1) ]
/ontrialend = [trial.choice.resetstimulusframes()]
/ branch = [if (values.pumpresult == 1 && trial.choice.response == "pumpbutton") trial.pop]
/ branch = [if ( trial.choice.response == "pumpbutton") {values.pumpsound = 1; trial.choice}]
/ branch = [if ( trial.choice.response == "collectbutton") trial.collect]
/ recorddata = true
</trial>
Thank you,
Rachel