--- API: 2.1 OpenSesame: 3.2.4 Platform: nt --- set width 1024 set uniform_coordinates yes set title "New experiment" set subject_parity even set subject_nr 0 set start experiment set sound_sample_size -16 set sound_freq 48000 set sound_channels 2 set sound_buf_size 1024 set sampler_backend legacy set round_decimals 2 set mouse_backend psycho set keyboard_backend psycho set height 768 set fullscreen no set form_clicks no set foreground black set font_underline no set font_size 18 set font_italic no set font_family mono set font_bold no set disable_garbage_collection yes set description "The main experiment item" set coordinates uniform set compensation 0 set color_backend psycho set clock_backend psycho set canvas_backend psycho set background gray define sketchpad cue set duration 50 set description "Displays stimuli" draw line color=black penwidth=3 show_if=always x1=0 x2=0 y1=-16 y2=16 z_index=0 draw line color=black penwidth=3 show_if=always x1=-16 x2=16 y1=0 y2=0 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=-300 y=-100 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=100 y=-100 z_index=0 draw rect color=black fill=0 h=200 penwidth=9 show_if="[cueside]=left" w=200 x=-300 y=-100 z_index=0 draw rect color=black fill=0 h=200 penwidth=9 show_if="[cueside]=right" w=200 x=100 y=-100 z_index=0 define sequence experiment set flush_keyboard yes set description "Runs a number of items in sequence" run introduction always run main_loop always define sketchpad inter_stimulus_screen set duration "[soa]" set description "Displays stimuli" draw line color=black penwidth=3 show_if=always x1=0 x2=0 y1=-16 y2=16 z_index=0 draw line color=black penwidth=3 show_if=always x1=-16 x2=16 y1=0 y2=0 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=-300 y=-100 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=100 y=-100 z_index=0 define advanced_delay inter_trial_interval set jitter_mode Uniform set jitter 500 set duration 1500 set description "Waits for a specified duration" define sketchpad introduction set duration keypress set description "Displays stimuli" draw textline center=1 color="#000000" font_bold=no font_family=mono font_italic=no font_size=42 html=yes show_if=always text="Do this task, please.

You'll get money." x=0 y=0 z_index=0 define keyboard_response key_response set timeout 5000 set flush yes set event_type keypress set duration keypress set description "Collects keyboard responses" set correct_response "[tarside]" set allowed_responses "left;right" define logger logger set description "Logs experimental data" set auto_log yes define loop main_loop set source table set repeat 1 set order random set description "Repeatedly runs another item" set cycles 8 set continuous no set break_if_on_first yes set break_if never setcycle 0 cueside left setcycle 0 soa 50 setcycle 0 tarside left setcycle 1 cueside right setcycle 1 soa 50 setcycle 1 tarside left setcycle 2 cueside left setcycle 2 soa 900 setcycle 2 tarside left setcycle 3 cueside right setcycle 3 soa 900 setcycle 3 tarside left setcycle 4 cueside left setcycle 4 soa 50 setcycle 4 tarside right setcycle 5 cueside right setcycle 5 soa 50 setcycle 5 tarside right setcycle 6 cueside left setcycle 6 soa 900 setcycle 6 tarside right setcycle 7 cueside right setcycle 7 soa 900 setcycle 7 tarside right run single_trial define sketchpad neutral set duration 0 set description "Displays stimuli" draw line color=black penwidth=3 show_if=always x1=0 x2=0 y1=-16 y2=16 z_index=0 draw line color=black penwidth=3 show_if=always x1=-16 x2=16 y1=0 y2=0 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=-300 y=-100 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=100 y=-100 z_index=0 define sequence single_trial set flush_keyboard yes set description "Runs a number of items in sequence" run neutral always run inter_trial_interval always run cue always run inter_stimulus_screen always run target always run key_response always run logger always define sketchpad target set duration 0 set description "Displays stimuli" draw line color=black penwidth=3 show_if=always x1=0 x2=0 y1=-16 y2=16 z_index=0 draw line color=black penwidth=3 show_if=always x1=-16 x2=16 y1=0 y2=0 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=-300 y=-100 z_index=0 draw rect color=black fill=0 h=200 penwidth=3 show_if=always w=200 x=100 y=-100 z_index=0 draw circle color=black fill=1 penwidth=1 r=8 show_if="[tarside]=left" x=-200 y=0 z_index=0 draw circle color=black fill=1 penwidth=1 r=8 show_if="[tarside]=right" x=200 y=0 z_index=0