Post by juochoa on Jan 18, 2021 15:03:20 GMT
Hello,
I am trying to record what participants do during a period where a new stimulus is overlaid an original stimulus. Currently I am trying to show the new stimulus for 1 second with the delay function, however, I am not able to get the program to record anything during this delay. Is it possible to do this? The part of the code in question is everything nested under the "if &b == $p || &b > $p" statement.
Thank you for any help!
I am trying to record what participants do during a period where a new stimulus is overlaid an original stimulus. Currently I am trying to show the new stimulus for 1 second with the delay function, however, I am not able to get the program to record anything during this delay. Is it possible to do this? The part of the code in question is everything nested under the "if &b == $p || &b > $p" statement.
Thank you for any help!
options
fullscreen
mouse on
escape
background color white
resolution 800 600
bitmaps
SD
Sdelta
Neutral
Punish
Background
Reinforcement
Instructions
Thankyou
task neutral
mouse on
draw off
show bitmap SD 175 0
show bitmap Sdelta -175 0
show bitmap Background 0 0
draw on
set $click 0
set $r random 7 9
set $p random 4 6
readmouse l 1 20000 range 1 3
set $click UNDER_MOUSE
if $click == 3
set &clicksoutside increase 1
fi
if $click == 1
set &clicksSD increase 1
set &a increase 1
set &b increase 1
fi
if $click == 2
set &clicksSdelta increase 1
fi
if &a == $r || &a > $r
mouse off
show bitmap Reinforcement
set &cubecounter increase 1
set &a 0
delay 1000
clear -1
mouse on
fi
if &b == $p || &b > $p
draw off
show bitmap Neutral 175 0
show bitmap Sdelta -175 0
show bitmap Background 0 0
draw on
delay 1000
set &b 0
if $click == 1
set &clicksneutral increase 1
set &neucounter increase 1
fi
if $click == 2
set &clicksSdelta increase 1
fi
if $click == 3
set &clicksoutside increase 1
fi
clear -1
clear -2
clear -3
fi
if &cubecounter == 3
set &cubecounter 0
end tasklist
fi
save TASKNAME &cubecounter RT $click &clicksSD &clicksSdelta &clicksoutside &neucounter &clicksneutral