How to use
This is the main source code for the experiment. If you want to use it, you should copy the actual zip file to your own PsyToolkit account, because often there are other files included for stimuli.
The source code for dotprobe
bitmaps
i1
i2
i3
table mytable
include mytable.txt
task dotprobe
keys a l
set $current &&my_trials remove random
tablerow $current
## stimulus presentation starts
show text "+++"
delay 500
clear -1
show text @2 0 -30
show text @3 0 30
delay 500
clear -1 -2
if @2 == @3
show text @5 0 -30
set $probeposition 1
else
show text @5 0 30
set $probeposition 2
fi
readkey @6 5000
clear -1
if STATUS == WRONG
show text "Wrong key. Use A or L"
delay 500
clear -1
delay 500
fi
if STATUS == TIMEOUT
show text "Please respond more quickly"
delay 500
clear -1
delay 500
fi
delay 500
set %topword @2
set %bottomword @3
save BLOCKNUMBER @1 RT STATUS $probeposition @6 TABLEROW %topword %bottomword
block training
message i1
message i2
message i3
set &&my_trials range 1 3
tasklist
dotprobe 3
end
block part1
message "Get ready for part 1, Press space bar to start."
set &&my_trials range 4 99
tasklist
dotprobe 48
end
block part2
message "Get ready for part 2. Press space bar to start."
tasklist
dotprobe 48
end
feedback
set &neutral mean c3 ; select c2 == 1
set &anxiety mean c3 ; select c2 == 2
text 0 -100 &neutral ; prefix "RT in neutral trials " ; postfix " ms"
text 0 -50 &anxiety ; prefix "RT in anxiety trials " ; postfix " ms"
text 0 50 "Press space to continue"
end
