Group: Administrators
Posts: 13K,
Visits: 104K
|
Thanks for attaching the file. I see no obvious issue with it and am so far unable to reproduce the behavior you observed, i.e., <trial choicegain> or <trial choiceloss> taking mere mouse movement as input.
In the script you attached, however, there are some apparent mistakes in <trial choiceloss> which will prevent the task from working properly.
<trial choiceloss> / stimulusframes = [1 = Leftoption, Rightoption;] / validresponse = (Leftoption, Rightoption) / recorddata = true / ontrialbegin = [values.prob = round(rand(1,100)); values.choice += 1;]
/ ontrialend = [if(trial.choicegain.response == "LeftOption" && values.side > 50 && values.prob <= 10) {values.outcome = -1; values.leftoutcome = -1; text.leftoutcome.item.1 = "-1 ₪"; values.rightoutcome = -10; text.rightoutcome.item.1 = "-10 ₪"; trial.outcome.trialduration = 5000} ] / ontrialend = [if(trial.choicegain.response == "RightOption" && values.side <= 50 && values.prob <= 10) {values.outcome = -1; values.rightoutcome = -1; text.rightoutcome.item.1 = "-1 ₪"; values.leftoutcome = -10; text.leftoutcome.item.1 = "-10 ₪"; trial.outcome.trialduration = 5000} ] / ontrialend = [if(trial.choicegain.response == "LeftOption" && values.side > 50 && values.prob > 10) {values.outcome = -1; values.leftoutcome = -1; text.leftoutcome.item.1 = "-1 ₪"; values.rightoutcome = 0; text.rightoutcome.item.1 = "0 ₪"; trial.outcome.trialduration = 1000} ] / ontrialend = [if(trial.choicegain.response == "RightOption" && values.side <= 50 && values.prob > 10) {values.outcome = -1; values.rightoutcome = -1; text.rightoutcome.item.1 = "-1 ₪"; values.leftoutcome = 0; text.leftoutcome.item.1 = "0 ₪"; trial.outcome.trialduration = 1000} ]
/ ontrialend = [if(trial.choicegain.response == "LeftOption" && values.side <= 50 && values.prob <= 10) {values.outcome = -10; values.leftoutcome = -10; text.leftoutcome.item.1 = "-10 ₪"; values.rightoutcome = -1; text.rightoutcome.item.1 = "-1 ₪"; trial.outcome.trialduration = 5000} ] / ontrialend = [if(trial.choicegain.response == "RightOption" && values.side > 50 && values.prob <= 10) {values.outcome = -10; values.rightoutcome = -10; text.rightoutcome.item.1 = "-10 ₪"; values.leftoutcome = -1; text.leftoutcome.item.1 = "-1 ₪"; trial.outcome.trialduration = 5000} ] / ontrialend = [if(trial.choicegain.response == "LeftOption" && values.side <= 50 && values.prob > 10) {values.outcome = 0; values.leftoutcome = 0; text.leftoutcome.item.1 = "0 ₪"; values.rightoutcome = -1; text.rightoutcome.item.1 = "-1 ₪"; trial.outcome.trialduration = 1000} ] / ontrialend = [if(trial.choicegain.response == "RightOption" && values.side > 50 && values.prob > 10) {values.outcome = 0; values.rightoutcome = 0; text.rightoutcome.item.1 = "0 ₪"; values.leftoutcome = -1; text.leftoutcome.item.1 = "-1 ₪"; trial.outcome.trialduration = 1000} ]
/ ontrialend = [if((trial.choiceloss.response == "LeftOption" && values.side <= 50)||(trial.choiceloss.response == "RightOption" && values.side > 50)){values.picked = 1} else {values.picked = 0}] / ontrialend = [if(values.leftoutcome == 10||values.leftoutcome==-10||values.rightoutcome == 10||values.rightoutcome ==- 10) {trial.outcome.trialduration = 5000} else {trial.outcome.trialduration = 1000}] </trial>
As you can see, almost the entire /ontrialend logic in that <trial> erroneously refers to <trial choicegain>'s response property. This doesn't look right to me and almost certainly will prevent the script from working as you intend it to.
If -- after correcting the above -- you still observe (seemingly) erroneous behavior (trials advancing on mere mouse movement), it would be great if you could do the following:
#1: To make sure we're on the same page testing-wise: Is your Inquisit installation up to date? If not, please update it to the latest release and check if the issue persists. #2: If the issue persists, what's the OS (type and version) of the affected system? Have you observed the issue on other systems as well? #3: For trials that advance on mouse movement, what is recorded in the data file's response column for the respective trial *and* the one preceding it?
Thanks.
|