Group: Forum Members
Posts: 11,
Visits: 197
|
Hi, I'm trying to create a trial where participants have to explore a page. The next trial they see depends on the stimulus they click at (either chronik or menu). Everything worked well but I also want to count the clicks of the mouse they are doing in each trial until they click the right buttons (either chronik or menu). So I ad "/ validresponse = (lbuttondown)" and "/ isvalidresponse = [if(trial.start_chronik.response == "lbuttondown"){values.mouseclick += 1; false} else true]" and unfortunately, it doesn't work anymore and I don't know why. It seems like Inquisit can't handle the different valid responses. I would be thankful for any help.
<trial start_chronik> / stimulusframes = [1=chronik, menu, startseite] / inputdevice = mouse / validresponse = (lbuttondown) / validresponse = (chronik, menu) / isvalidresponse = [if(trial.start_chronik.response == "lbuttondown"){values.mouseclick += 1; false} else true] / branch = [if (trial.start_chronik.response == "menu") trial.chronik_w2] / branch = [if (trial.start_chronik.response == "chronik") trial.chronik_w1] </trial>
|