Dear community, dear Dave,
I have a question. I'm trying to present a word and have every letter be its own stimulus. If one letter is pressed, I want to replace its image with a strike-through version of it. And the other way around: If a striked-through character is pressed, the non-striked-through version should be shown.
I got far enough to replace a non-striked version with a striked version. However, if I then press on the strike-letter, Inquisit still logs the response as the non-striked letter (e.g. h_upper_pure, not h_upper_strike). Therefore, I have no way to display the non-striked letter again, because Inquisit can't distinguish the stimuli.
I appended the code below.
Thank you in advance for your help
<defaults>
/ inputdevice = mouse
</defaults>
<picture h_upper_pure>
/ items = ("./letters/cropped/h_uppercase.png")
/ position = (40%, 50%)
</picture>
<picture h_upper_strike>
/ items = ("./letters/crossed/h_uppercase.png")
/ position = (40%, 50%)
</picture>
<picture e_lower_pure>
/ items = ("./letters/cropped/e_lowercase.png")
/ position = (45%, 50%)
</picture>
<picture e_lower_strike>
/ items = ("./letters/crossed/e_lowercase.png")
/ position = (45%, 50%)
</picture>
<picture l1_lower_pure>
/ items = ("./letters/cropped/l_lowercase.png")
/ position = (50%, 50%)
</picture>
<picture l1_lower_strike>
/ items = ("./letters/crossed/l_lowercase.png")
/ position = (50%, 50%)
</picture>
<picture l2_lower_pure>
/ items = ("./letters/cropped/l_lowercase.png")
/ position = (55%, 50%)
</picture>
<picture l2_lower_strike>
/ items = ("./letters/crossed/l_lowercase.png")
/ position = (55%, 50%)
</picture>
<picture o_lower_pure>
/ items = ("./letters/cropped/o_lowercase.png")
/ position = (60%, 50%)
</picture>
<picture o_lower_strike>
/ items = ("./letters/crossed/o_lowercase.png")
/ position = (60%, 50%)
</picture>
<trial test>
/ stimulusframes = [1 = h_upper_pure; 2 = e_lower_pure; 3 = l1_lower_pure; 4 = l2_lower_pure; 5 = o_lower_pure]
/ validresponse = (
h_upper_pure, h_upper_strike,
e_lower_pure, e_lower_strike,
l1_lower_pure, l1_lower_strike,
l2_lower_pure, l2_lower_strike,
o_lower_pure, o_lower_strike
)
/ ontrialend = [
if (trial.test.response == "h_upper_pure") {
trial.test.removestimulusframe(1);
trial.test.insertstimulusframe(picture.h_upper_strike, 1);
}
if (trial.test.response == "h_upper_strike") {
trial.test.removestimulusframe(1);
trial.test.insertstimulusframe(picture.h_upper_pure, 1);
}
if (trial.test.response == "e_lower_pure") {
trial.test.removestimulusframe(2);
trial.test.insertstimulusframe(picture.e_lower_strike, 2);
}
if (trial.test.response == "e_lower_strike") {
trial.test.removestimulusframe(2);
trial.test.insertstimulusframe(picture.e_lower_pure, 2);
}
]
/ branch = [
trial.test;
]
</trial>
<block testblock>
/ trials = [1 = test]
</block>