I adapted the aggression Stroop from the library to be a suicide-specific emotional Stroop task, so 5 conditions (suicide, positive, negative, neutral, practice words) with two possible responses (blue and red).
When I run it, if I choose a wrong answer it does not reliably identify it as incorrect—so definitely something has gone awry! I think it has to do with a certain area of code that I changed, but as I’m not sure. Here is one area of code I edited (because I was going from 4 colors down to 2)
Under each condition section (e.g, suicide, neutral) I changed this code:
/ontrialend = [
trial.NeutralWord.resetstimulusframes();
values.target = text.NeutralWord.currentitem;
if (text.NeutralWord.textcolor == yellow)
values.color = "yellow"
else if (text.NeutralWord.textcolor == red)
values.color = "red"
else if (text.NeutralWord.textcolor == blue)
values.color = "blue"
else
values.color = "green";
if (trial.NeutralWord.correct) {
values.correct_neutralwords += 1;
values.sumrt_neu += trial.neutralword.latency;}
]
/ errormessage = true(x, 400)
</trial>
To look like this:
/ontrialend = [
trial.suicideword.resetstimulusframes();
values.target = text.suicideword.currentitem;
if (text.suicideword.textcolor == blue)
values.color = "blue"
else if (text.suicideword.textcolor == red)
values.color = "red";
if (trial.suicideword.correct) {
values.correct_suicidewords += 1;
values.sumrt_Sui += trial.suicideword.latency};
]
/ errormessage = true(x, 400)
</trial>
Any thoughts of what I may have done wrong? I also added the whole script below in case that is helpful. Thanks in advance, any help is so appreciated!