selecting trial lists


Author
Message
nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
hi, i was wondering whether you're able to select a list from another list when setting the trial sequence. below i am trying to launch 33 trials from the first list of a list of lists. thanks for your help! 

<block learning_block1>
/ onblockbegin = [
  values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: stim selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 83K
nrouhani - 6/24/2022
hi, i was wondering whether you're able to select a list from another list when setting the trial sequence. below i am trying to launch 33 trials from the first list of a list of lists. thanks for your help! 

<block learning_block1>
/ onblockbegin = [
  values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: stim selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>



Yes, sure that's possible.

<values>
/ blocklist = 1
</values>

<block example>
/ onblockbegin = [
    values.blocklist = 2;
]
/ trials = [1-4 = list.triallist]
</block>

<list triallist>
/ items = (list.a.nextvalue, list.b.nextvalue)
/ selectionmode = values.blocklist
</list>

<list a>
/ items = (trial.a1, trial.a2, trial.a3, trial.a4)
/ selectionmode = sequence
</list>

<list b>
/ items = (trial.b1, trial.b2, trial.b3, trial.b4)
/ selectionmode = sequence
</list>

<trial a1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("<%script.currenttrial%>")
</text>


Your syntax here is wrong:

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

It ought to be

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]

/ errormessage = false
/ preinstructions = (learninstructions)
</block>
nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
Dave - 6/24/2022
nrouhani - 6/24/2022
hi, i was wondering whether you're able to select a list from another list when setting the trial sequence. below i am trying to launch 33 trials from the first list of a list of lists. thanks for your help! 

<block learning_block1>
/ onblockbegin = [
  values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: stim selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>



Yes, sure that's possible.

<values>
/ blocklist = 1
</values>

<block example>
/ onblockbegin = [
    values.blocklist = 2;
]
/ trials = [1-4 = list.triallist]
</block>

<list triallist>
/ items = (list.a.nextvalue, list.b.nextvalue)
/ selectionmode = values.blocklist
</list>

<list a>
/ items = (trial.a1, trial.a2, trial.a3, trial.a4)
/ selectionmode = sequence
</list>

<list b>
/ items = (trial.b1, trial.b2, trial.b3, trial.b4)
/ selectionmode = sequence
</list>

<trial a1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("<%script.currenttrial%>")
</text>


Your syntax here is wrong:

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

It ought to be

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]

/ errormessage = false
/ preinstructions = (learninstructions)
</block>

thank you! it's kind of working now, but with a bug i can't explain. when the task moves from the first block to the second, it skips the first trial in the list for the second block ('trial.new_room'), but does not skip this trial for the third or fourth block. i played around with it a bit (e.g., tested starting with learning_block2, had the second block set to any of the other three learning lists) and discovered that no matter which trial list is called up, the second block in the experiment will skip the "trial.new_room" in that list.

code below - thank you for your help! 


<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

// trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 83K
nrouhani - 6/24/2022
Dave - 6/24/2022
nrouhani - 6/24/2022
hi, i was wondering whether you're able to select a list from another list when setting the trial sequence. below i am trying to launch 33 trials from the first list of a list of lists. thanks for your help! 

<block learning_block1>
/ onblockbegin = [
  values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: stim selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>



Yes, sure that's possible.

<values>
/ blocklist = 1
</values>

<block example>
/ onblockbegin = [
    values.blocklist = 2;
]
/ trials = [1-4 = list.triallist]
</block>

<list triallist>
/ items = (list.a.nextvalue, list.b.nextvalue)
/ selectionmode = values.blocklist
</list>

<list a>
/ items = (trial.a1, trial.a2, trial.a3, trial.a4)
/ selectionmode = sequence
</list>

<list b>
/ items = (trial.b1, trial.b2, trial.b3, trial.b4)
/ selectionmode = sequence
</list>

<trial a1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("<%script.currenttrial%>")
</text>


Your syntax here is wrong:

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

It ought to be

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]

/ errormessage = false
/ preinstructions = (learninstructions)
</block>

thank you! it's kind of working now, but with a bug i can't explain. when the task moves from the first block to the second, it skips the first trial in the list for the second block ('trial.new_room'), but does not skip this trial for the third or fourth block. i played around with it a bit (e.g., tested starting with learning_block2, had the second block set to any of the other three learning lists) and discovered that no matter which trial list is called up, the second block in the experiment will skip the "trial.new_room" in that list.

code below - thank you for your help! 


<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

// trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>

Could you please provide code that can actually be run instead of something that is missing dozens of the things it references?
nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
Dave - 6/25/2022
nrouhani - 6/24/2022
Dave - 6/24/2022
nrouhani - 6/24/2022
hi, i was wondering whether you're able to select a list from another list when setting the trial sequence. below i am trying to launch 33 trials from the first list of a list of lists. thanks for your help! 

<block learning_block1>
/ onblockbegin = [
  values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: stim selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>



Yes, sure that's possible.

<values>
/ blocklist = 1
</values>

<block example>
/ onblockbegin = [
    values.blocklist = 2;
]
/ trials = [1-4 = list.triallist]
</block>

<list triallist>
/ items = (list.a.nextvalue, list.b.nextvalue)
/ selectionmode = values.blocklist
</list>

<list a>
/ items = (trial.a1, trial.a2, trial.a3, trial.a4)
/ selectionmode = sequence
</list>

<list b>
/ items = (trial.b1, trial.b2, trial.b3, trial.b4)
/ selectionmode = sequence
</list>

<trial a1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("<%script.currenttrial%>")
</text>


Your syntax here is wrong:

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

It ought to be

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]

/ errormessage = false
/ preinstructions = (learninstructions)
</block>

thank you! it's kind of working now, but with a bug i can't explain. when the task moves from the first block to the second, it skips the first trial in the list for the second block ('trial.new_room'), but does not skip this trial for the third or fourth block. i played around with it a bit (e.g., tested starting with learning_block2, had the second block set to any of the other three learning lists) and discovered that no matter which trial list is called up, the second block in the experiment will skip the "trial.new_room" in that list.

code below - thank you for your help! 


<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

// trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>

Could you please provide code that can actually be run instead of something that is missing dozens of the things it references?

it's a long script that can't be run without images, thought i was highlighting the critical parts, but if the below is what you want, then thanks. 
*************************************************
Creating an Experiment
*************************************************

<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

/ preinstructions = (expinstructions1a,expinstructions1b, expinstructions2, expinstructions3, expinstructions4, expinstructions5, expinstructions6, expinstructions7, expinstructions8, expinstructions9, expinstructions10, expinstructions11, expinstructions12, expinstructions13)
/ blocks = [1=check; 2=practice; 3=learning_block1; 4=learning_block2; 5=learning_block3; 6=learning_block4; 7=memoryPrac; 8=memory_block1; 9=memory_block2; 10=memory_block3]

*************************************************
INITIALIZE
*************************************************

<values>
/ blockList = 0
/ natSample = 0
/ artSample = 0
/ outSample = 0
</values>

*************************************************
***// change by condition //***
*************************************************

/ scene order
/1 = "scenes_beach.jpg"
/2 = "scenes_city.jpg"
/3 = "scenes_forest.jpg"
/4 = "scenes_village.jpg"
<list sceneList>
/ items = (2,4,1,3)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ natural or artificial winner order: NAAN
<list nat_rewList>
/ items = (list.valStims_lr_4060_high.nextvalue,list.valStims_hr_2080_low.nextvalue,list.valStims_lr_2080_low.nextvalue,list.valStims_hr_4060_high.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list art_rewList>
/ items = (list.valStims_lr_4060_low.nextvalue,list.valStims_hr_2080_high.nextvalue,list.valStims_lr_2080_high.nextvalue,list.valStims_hr_4060_low.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ image order
<list art_cueList>
/ items = (list.learnStims_art_A_x.nextvalue,list.learnStims_art_B_x.nextvalue,list.learnStims_art_C_x.nextvalue,list.learnStims_art_D_x.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list art_outList>
/ items = (list.learnStims_art_A_y.nextvalue,list.learnStims_art_B_y.nextvalue,list.learnStims_art_C_y.nextvalue,list.learnStims_art_D_y.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list nat_cueList>
/ items = (list.learnStims_nat_A_x.nextvalue,list.learnStims_nat_B_x.nextvalue,list.learnStims_nat_C_x.nextvalue,list.learnStims_nat_D_x.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list nat_outList>
/ items = (list.learnStims_nat_A_y.nextvalue,list.learnStims_nat_B_y.nextvalue,list.learnStims_nat_C_y.nextvalue,list.learnStims_nat_D_y.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ jitter list order
<list jitter_estimateList>
/ items = (list.jitter_estimateA.nextvalue,list.jitter_estimateB.nextvalue,list.jitter_estimateC.nextvalue,list.jitter_estimateD.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list jitter_itiList>
/ items = (list.jitter_itiA.nextvalue,list.jitter_itiB.nextvalue,list.jitter_itiC.nextvalue,list.jitter_itiD.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>


*************************************************
CHECK
*************************************************

<survey check>
/ pages = [1=questions]
/ responsefontstyle = ("Arial", 13)s
/ itemfontstyle = ("Arial", 18)
/ txcolor = white
/ screencolor = darkgrey
/ itemspacing = 5%
/ showpagenumbers = false
</survey>

<surveypage questions>
/ caption = "Before starting the experiment, please answer the following questions and click submit. Once you've answered all questions correctly, the task will automatically load. If you do not answer correctly, you will see the instructions again."
/ fontstyle = ("Arial", 20)
/ txcolor = white
/ showquestionnumbers = false
/ questions = [1=question1; 2=question2; 3=question3; 4=question4]
/ branch = [
    if (radiobuttons.question1.response=="a) one type of item (either artificial or natural) is more valuable on average in each location"&&radiobuttons.question2.response=="b) the value of each pair determines the amount you are winning"&&radiobuttons.question3.response=="a) the average value of artificial or natural items within that location"&&radiobuttons.question4.response=="e) a+b+c") surveypage.success else surveypage.fail
]
</surveypage>

<radiobuttons question1>
/ caption = "Which statement is true about artificial versus natural items?"
/ options = ("a) one type of item (either artificial or natural) is more valuable on average in each location", "b) objects can take on any value, and whether they are artificial or natural does not matter", "c) items within a pair can belong to different category types")
</radiobuttons>

<radiobuttons question2>
/ caption = "Which statement is true about the resale value of each pair?"
/ options = ("a) the value of each pair doesn't affect your winnings","b) the value of each pair determines the amount you are winning","c) the value of each pair can change without warning")
</radiobuttons>

<radiobuttons question3>
/ caption = "What determines the resale value of each pair?"
/ options = ("a) the average value of artificial or natural items within that location", "b) the quality of the photos in the pair", "c) the quality and outside value of the items in the pair")
</radiobuttons>

<radiobuttons question4>
/ caption = "What should you pay attention to?"
/ options = ("a) the two items within a pair", "b) the reward value of each pair", "c) the location you found the items in", "d) a+b", "e) a+b+c")
</radiobuttons>

<surveypage success>
/ caption = "~n~n~n~nCongrats! You answered every question correctly. You will next get to practice the task.~n~nNote that to get used to the task, on the first 4 turns you will have 6 seconds rather than 3 seconds to estimate average values.~n~nAfter that, you will have 3 seconds to answer, the same as the normal task. Please continue to the practice task."
/ fontstyle = ("Arial", 20)
/ txcolor = white
/ showbackbutton = false
</surveypage>

<surveypage fail>
/ caption = "You did not answer every question correctly. Please re-read the instructions below and try again by clicking the back button.
In this experiment, you will be travel to four different locations where you will pick up artificial objects (man-made items such as bowls or sports equipment) and natural items (such as plants or food items) to sell.
Within each location, one of the two categories, 'artificial' or 'natural' items, will be worth more money overall making it the winner.
To learn about the values of artificial and natural items in each location, on each turn, you will find and sell either two artificial or two natural items.
Pairs of items have a value between 0 and 100 cents. You will get a commission of 10% of the value of each pair, paid to you at the end of the experiment.
Note that the value of the pair of items is not determined by the specific items but by the value of that category (i.e., ‘artificial’ or ‘natural’ ) in the location you are in.
For each pair of items you find, you will first see one of the items and estimate how much you think on average items from that category (artificial or natural) are worth in that location, from 0 to 100 cents. You will have 3 seconds to enter your estimate.
At first, you will not know the answer, but please make your best guess of what the average value of that category is in your location. To submit your answer, enter your guess in the answer box. Afterwards, the true value of the pair will appear along with the second item belonging to the pair.
Remember: Although different pairs of items have different values, their worth is solely determined by the general value of their category in the location you are in. The average value of each type of item category (artificial or natural) will not change within a location, but may change when you arrive at a new location.
In addition, specific values of pairs will vary around the mean value, and each location has different amounts of variability in their category values. For example, in one location, let's say pairs of natural items can be sold for 50 cents on average, which, in practice, may mean that you would find one pair that is worth 60 cents and another worth 40 cents, and yet a third will be worth 50 cents. In another location, where there is greater resale variability, an average value of 50 cents could look like pairs of items that are worth 30 cents and 70 cents.
These levels of resale variability stay the same in one location, but may change from one location to another.
Pay attention to the resale value of each pair, so you can better guess the average value of artificial and natural items within each location.
Importantly, after touring all locations, you will be asked to indicate which item category was more valuable in each location (which category was the 'winner' in each location). To help answer correctly, pay attention to where each item is found as well as their resale values.
"
/ fontstyle = ("Arial", 11)
/ txcolor = white
/ nextbuttonposition = (-10%, -10%)
</surveypage>

*************************************************
PRACTICE
*************************************************

<block practice>
/ trials = [1=practiceR; 2-13=pause_practice]
/ errormessage = false
</block>

/ new room
<trial practiceR>
/ stimulustimes = [0=blank, scenePractice, newRoomText, welcomePractice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// practice trials
<trial pause_practice>
/ stimulustimes = [0=blank,scenePractice,fixation]
/ trialduration = list.jitterPrac_iti.nextvalue
/ validresponse = (noresponse)
/ branch = [
    if (list.practice.nextvalue==1){
        trial.practice_nat;
    }else{
        trial.practice_art;
    }    
]
</trial>

<openended estimate_practice>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=scenePractice, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitterPrac_estimate.nextvalue
/ trialduration = list.jitterPrac_baseline.nextvalue + list.jitterPrac_estimate.currentvalue
/ branch = [
    if (list.practice.currentvalue==1){
        trial.outcome_practice_nat;
    }else{
        trial.outcome_practice_art;
    };    
]
</openended>

/ practice natural items
<trial practice_nat>
/ stimulustimes = [0=blank,practStim_nat]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_practice
]
</trial>

<trial outcome_practice_nat>
/ stimulustimes = [0=blank,practStim_nat, val_practice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

/ practice artificial items
<trial practice_art>
/ stimulustimes = [0=blank,practStim_art]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_practice
]
</trial>

<trial outcome_practice_art>
/ stimulustimes = [0=blank,practStim_art, val_practice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

<list practice>
/ items = (1,2,1,2,2,1,1,2,1,1,2,2)
/ selectionmode = sequence
</list>

<list pracStims_art>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12)
/ poolsize = 12
/ selectionmode = random
/ selectionrate = always
</list>

<list pracStims_nat>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12)
/ poolsize = 12
/ selectionmode = random
/ selectionrate = always
</list>

<list jitterPrac_iti>
/ items = (1000,3000,5000,1000,3000,5000,1000,3000,5000,1000,3000,5000)
/ selectionmode = random
/ selectionrate = always
</list>

<list jitterPrac_baseline>
/ items = (6000,6000,6000,6000,3000,3000,3000,3000,3000,3000,3000,3000)
/ selectionmode = sequence
</list>

<list jitterPrac_estimate>
/ items = (0,2000,0,2000,0,2000,0,2000,0,2000,0,2000)
/ selectionmode = random
/ selectionrate = always
</list>


*************************************************
LEARNING LISTS
*************************************************

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

// learning: randomize images within group and block

/ artificial stim
<list learnStims_art_A_x>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_A_y>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_B_x>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_B_y>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_C_x>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_C_y>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_D_x>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_D_y>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionrate = always
</list>

<list newStims_art>
/ items = (121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180)
/ poolsize = 60
/ selectionrate = always
</list>

/ natural stims
<list learnStims_nat_A_x>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_A_y>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_B_x>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_B_y>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_C_x>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_C_y>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_D_x>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_D_y>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionrate = always
</list>

<list newStims_nat>
/ items = (121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180)
/ poolsize = 60
/ selectionrate = always
</list>

// learning: outcome lists

/ lr_4060
<list valStims_lr_4060_high>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_lr_4060_low>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ lr_2080
<list valStims_lr_2080_high>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_lr_2080_low>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ hr 4060
<list valStims_hr_4060_high>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_hr_4060_low>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ hr 2080
<list valStims_hr_2080_high>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_hr_2080_low>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionmode = sequence
</list>

// jitter lists

/ jitter_estimate
<list jitter_estimateA>
/ items = (2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateB>
/ items = (2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000,0,2000,0,2000,0,2000,2000,0,0,2000,0,2000,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateC>
/ items = (2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,0,2000,2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateD>
/ items = (0,2000,2000,0,2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000,2000,0,0,2000,0,2000,2000,0)
/ poolsize = 30
/ selectionmode = sequence
</list>

/ jitter_iti
<list jitter_itiA>
/ items = (1000,3000,5000,1000,5000,3000,3000,1000,5000,5000,1000,3000,1000,5000,3000,3000,1000,5000,3000,5000,1000,3000,1000,5000,1000,3000,5000,3000,1000,5000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiB>
/ items = (1000,5000,3000,5000,1000,3000,1000,5000,3000,3000,5000,1000,5000,1000,3000,1000,5000,3000,5000,1000,3000,1000,3000,5000,3000,1000,5000,1000,5000,3000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiC>
/ items = (3000,5000,1000,5000,1000,3000,5000,3000,1000,1000,3000,5000,1000,5000,3000,5000,1000,3000,1000,5000,3000,3000,1000,5000,5000,1000,3000,1000,3000,5000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiD>
/ items = (3000,5000,1000,3000,1000,5000,1000,3000,5000,3000,5000,1000,1000,5000,3000,1000,3000,5000,1000,5000,3000,3000,1000,5000,3000,5000,1000,5000,1000,3000)
/ poolsize = 30
/ selectionmode = sequence
</list>


*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>

*************************************************
Creating Instructions
*************************************************
// initial learning
<htmlpage expinstructions1a>
/ file = "instruct-1a.html"
</htmlpage>

<htmlpage expinstructions1b>
/ file = "instruct-1b.html"
</htmlpage>

<htmlpage expinstructions2>
/ file = "instruct-2.html"
</htmlpage>

<htmlpage expinstructions3>
/ file = "instruct-3.html"
</htmlpage>

<htmlpage expinstructions4>
/ file = "instruct-4.html"
</htmlpage>

<htmlpage expinstructions5>
/ file = "instruct-5.html"
</htmlpage>

<htmlpage expinstructions6>
/ file = "instruct-6.html"
</htmlpage>

<htmlpage expinstructions7>
/ file = "instruct-7.html"
</htmlpage>

<htmlpage expinstructions8>
/ file = "instruct-8.html"
</htmlpage>

<htmlpage expinstructions9>
/ file = "instruct-9.html"
</htmlpage>

<htmlpage expinstructions10>
/ file = "instruct-10.html"
</htmlpage>

<htmlpage expinstructions11>
/ file = "instruct-11.html"
</htmlpage>

<htmlpage expinstructions12>
/ file = "instruct-12.html"
</htmlpage>

<htmlpage expinstructions13>
/ file = "instruct-13.html"
</htmlpage>

// learning
<htmlpage learninstructions>
/ file = "instruct-ready-learning.html"
</htmlpage>

// memory
<htmlpage meminstructions1>
/ file = "instruct-item1.html"
</htmlpage>

<htmlpage meminstructions2>
/ file = "instruct-item2.html"
</htmlpage>

<htmlpage meminstructions3>
/ file = "instruct-ready-memory.html"
</htmlpage>

// choice
<htmlpage choiceinstructions>
/ file = "instruct-choice.html"
</htmlpage>

*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = (175, 175, 175)
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>

*************************************************
Stimuli Presentation
*************************************************

<text fixation>
/ items = (" finding new items...")
/ txbgcolor = white
/ txcolor = darkgray
/ position = (50%, 50%)
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ erase = false
/ vjustify = center
</text>

<text cross>
/ items = ("+")
/ txbgcolor = transparent
/ txcolor = white
/ position = (50%, 50%)
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ erase = false
/ vjustify = center
</text>

// PRACTICE
/ scene
<picture scenePractice>
/ items = ("scenes_practice.jpg")
/ size = (100%, 100%)
/ erase = false
</picture>

<text welcomePractice>
/ items = ("Welcome to the mountains!")
/ vjustify = center
/ size = (500,150)
/ fontstyle = ("Helvetica", 5%, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

/ practice stims
<picture practStim_nat>
/ items = prac_natStims
/ size = (30%, 30%)
/ select = list.pracStims_nat.nextvalue
/ erase = false
</picture>

<picture practStim_art>
/ items = prac_artStims
/ size = (30%, 30%)
/ select = list.pracStims_art.nextvalue
/ erase = false
</picture>

/ rewards
<text val_practice>
/ items = valuesP
/ select = sequence
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ vjustify = center
/ hjustify = center
/ vposition = 25
/ hposition = 50
/ txcolor = chartreuse
/ erase = false
/ size = (13%,13%)
</text>

// LEARNING
/ scene
<picture sceneStim_new>
/ items = sceneStims
/ size = (100%, 100%)
/ select = list.sceneList
/ erase = false
</picture>

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text welcomeScene>
/ items = sceneWelcome
/ select = list.sceneList
/ vjustify = center
/ size = (500,150)
/ fontstyle = ("Helvetica", 5%, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<picture sceneStim_current>
/ items = sceneStims
/ size = (100%, 100%)
/ select = list.sceneList
/ erase = false
</picture>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

/ rewards
<text outcomes>
/ items = outcomeStims
/ select = values.outSample
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ vjustify = center
/ hjustify = center
/ vposition = 25
/ hposition = 50
/ txcolor = chartreuse
/ erase = false
/ size = (13%,13%)
</text>

/ stims
<picture natP>
/ items = natStims
/ size = (30%, 30%)
/ select = values.natSample
/ erase = false
</picture>

<picture artP>
/ items = artStims
/ size = (30%, 30%)
/ select = values.artSample
/ erase = false
</picture>

/ break stims
<text learnBreakStatus>
/ items = learnStatus
/ select = sequence
/ vjustify = center
/ size = (1000,200)
/ fontstyle = ("Helvetica", 20, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txcolor = white
/ txbgcolor = transparent
</text>

<text learnBreakText>
/ items = ("You can take a break now. When you are ready to continue, please press the spacebar.")
/ vjustify = center
/ size = (1000,200)
/ fontstyle = ("Helvetica", 20, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txcolor = white
/ txbgcolor = transparent
</text>

// CHOICE
<text choiceMemQ>
/ items = ("press 1 or 2 to indicate which category was more rewarding in this location")
/ vjustify = center
/ size = (600,100)
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vposition = (20)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

<picture artificialStim>
/ items = ("artificial.png")
/ size = (30%, 30%)
/ vposition = 50
/ hposition = 35
</picture>

<picture naturalStim>
/ items = ("natural.png")
/ size = (30%, 30%)
/ vposition = 50
/ hposition = 65
</picture>

<text oneC>
/ items = ("1")
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vjustify = center
/ hjustify = center
/ vposition = 32
/ hposition = 35
/ txcolor = darkgray
/ erase = false
/ size = (4%,4%)
</text>

<text twoC>
/ items = ("2")
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vjustify = center
/ hjustify = center
/ vposition = 32
/ hposition = 65
/ txcolor = darkgray
/ erase = false
/ size = (4%,4%)
</text>

*************************************************
Item Lists
*************************************************

// prac image item lists
<item prac_artStims>
/1 = "prac_brooch.jpg"
/2 = "prac_chisel02b.jpg"
/3 = "prac_clotheshanger.jpg"
/4 = "prac_jack.jpg"
/5 = "prac_key01.jpg"
/6 = "prac_makeupbrush02a.jpg"
/7 = "prac_microwave.jpg"
/8 = "prac_nailpolish02a.jpg"
/9 = "prac_morningstar.jpg"
/10 = "prac_ring02.jpg"
/11 = "prac_snaredrum.jpg"
/12 = "prac_woodenshoe.jpg"
</item>

<item prac_natStims>
/1 = "prac_barnacles.jpg"
/2 = "prac_bonsai.jpg"
/3 = "prac_crab-claw.jpg"
/4 = "prac_dandilion-seeds.jpg"
/5 = "prac_durian.jpg"
/6 = "prac_honey.jpg"
/7 = "prac_ice.jpg"
/8 = "prac_nautilus.jpg"
/9 = "prac_papaya.jpg"
/10 = "prac_redtulips.jpg"
/11 = "prac_rice.jpg"
/12 = "prac_rose.jpg"
</item>

<item prac_mem>
/1 = "prac_dreamcatcher_memExample.jpg"
/2 = "prac_ice.jpg"
/3 = "prac_fire_hydrant_memExample.jpg"
/4 = "prac_durian.jpg"
</item>

<item valuesP>
/1 = "34¢"
/2 = "68¢"
/3 = "25¢"
/4 = "77¢"
/5 = "58¢"
/6 = "31¢"
/7 = "17¢"
/8 = "60¢"
/9 = "44¢"
/10 = "29¢"
/11 = "85¢"
/12 = "72¢"
</item>

// context scenes
<item sceneStims>
/1 = "scenes_beach.jpg"
/2 = "scenes_city.jpg"
/3 = "scenes_forest.jpg"
/4 = "scenes_village.jpg"
</item>

<item sceneWelcome>
/1 = "Welcome to the beach!"
/2 = "Welcome to the city!"
/3 = "Welcome to the forest!"
/4 = "Welcome to the village!"
</item>

<item learnStatus>
/1 = "Good start, you have visited one location,~n and have three left!"
/2 = "You are now half-way through! ~nYou have visited two locations, and have two left."
/3 = "You have visited three locations, ~nand only have one left!"
/4 = "You have visited all locations, ~nyou will now continue to the next phase of the study!"
</item>

<item memStatus>
/1 = "You have completed one section,~n and have two left!"
/2 = "You only have one section left!"
</item>

/ valStims_lr_4060_high (1-15)
/ valStims_lr_4060_low (16-30)
/ valStims_lr_2080_high (31-45)
/ valStims_lr_2080_low (46-60)
/ valStims_hr_4060_high (61-75)
/ valStims_hr_4060_low (76-90)
/ valStims_hr_2080_high (91-105)
/ valStims_hr_2080_low (106-120)

<item outcomeStims>
/1 = "52¢"
/2 = "63¢"
/3 = "69¢"
/4 = "61¢"
/5 = "55¢"
/6 = "50¢"
/7 = "62¢"
/8 = "70¢"
/9 = "65¢"
/10 = "53¢"
/11 = "59¢"
/12 = "68¢"
/13 = "51¢"
/14 = "64¢"
/15 = "58¢"
/16 = "43¢"
/17 = "32¢"
/18 = "50¢"
/19 = "41¢"
/20 = "34¢"
/21 = "49¢"
/22 = "33¢"
/23 = "45¢"
/24 = "35¢"
/25 = "38¢"
/26 = "36¢"
/27 = "48¢"
/28 = "30¢"
/29 = "46¢"
/30 = "40¢"
/31 = "70¢"
/32 = "79¢"
/33 = "86¢"
/34 = "75¢"
/35 = "90¢"
/36 = "81¢"
/37 = "72¢"
/38 = "76¢"
/39 = "88¢"
/40 = "83¢"
/41 = "73¢"
/42 = "84¢"
/43 = "80¢"
/44 = "89¢"
/45 = "74¢"
/46 = "25¢"
/47 = "11¢"
/48 = "30¢"
/49 = "18¢"
/50 = "16¢"
/51 = "26¢"
/52 = "12¢"
/53 = "15¢"
/54 = "28¢"
/55 = "19¢"
/56 = "29¢"
/57 = "14¢"
/58 = "20¢"
/59 = "13¢"
/60 = "24¢"
/61 = "60¢"
/62 = "41¢"
/63 = "78¢"
/64 = "49¢"
/65 = "72¢"
/66 = "48¢"
/67 = "59¢"
/68 = "42¢"
/69 = "80¢"
/70 = "71¢"
/71 = "50¢"
/72 = "61¢"
/73 = "76¢"
/74 = "43¢"
/75 = "70¢"
/76 = "59¢"
/77 = "32¢"
/78 = "40¢"
/79 = "22¢"
/80 = "47¢"
/81 = "56¢"
/82 = "41¢"
/83 = "21¢"
/84 = "33¢"
/85 = "49¢"
/86 = "23¢"
/87 = "42¢"
/88 = "57¢"
/89 = "48¢"
/90 = "30¢"
/91 = "68¢"
/92 = "81¢"
/93 = "92¢"
/94 = "62¢"
/95 = "97¢"
/96 = "77¢"
/97 = "61¢"
/98 = "99¢"
/99 = "70¢"
/100 = "93¢"
/101 = "60¢"
/102 = "100¢"
/103 = "71¢"
/104 = "87¢"
/105 = "82¢"
/106 = "10¢"
/107 = "32¢"
/108 = "18¢"
/109 = "38¢"
/110 = "2¢"
/111 = "11¢"
/112 = "28¢"
/113 = "19¢"
/114 = "3¢"
/115 = "40¢"
/116 = "0¢"
/117 = "20¢"
/118 = "9¢"
/119 = "37¢"
/120 = "33¢"
</item>


*************************************************
***// change by condition //***
*************************************************

// stim set 1
<item natStims>
/1 = "flower_buttercup.jpg"
/2 = "food_grapes_red.jpg"
/3 = "food_romaine.jpg"
/4 = "food_cabbage_green.jpg"
/5 = "nature_dirt.jpg"
/6 = "leaf_green.jpg"
/7 = "food_pepper_corns.jpg"
/8 = "flower_lillies.jpg"
/9 = "nature_star-anise.jpg"
/10 = "food_grass.jpg"
/11 = "plant_full.jpg"
/12 = "food_broccoli01b.jpg"
/13 = "leaf_pine.jpg"
/14 = "food_apple_green.jpg"
/15 = "food_hotpepper_red.jpg"
/16 = "food_potatoes.jpg"
/17 = "plant_lily.jpg"
/18 = "plant_air-plant.jpg"
/19 = "food_onions_yellow.jpg"
/20 = "food_oyster.jpg"
/21 = "rock_pinkcrystal.jpg"
/22 = "food_cranberries.jpg"
/23 = "food_dates.jpg"
/24 = "ocean_seashell01.jpg"
/25 = "food_walnuts.jpg"
/26 = "food_snappeas.jpg"
/27 = "nature_acorn.jpg"
/28 = "food_cherries_white.jpg"
/29 = "flower_hydrangea.jpg"
/30 = "food_sprouts_alpha.jpg"
/31 = "nature_wood.jpg"
/32 = "food_fig.jpg"
/33 = "rock_stone.jpg"
/34 = "flower_cherry_blossom.jpg"
/35 = "ocean_clam-shell.jpg"
/36 = "food_eggs.jpg"
/37 = "food_cucumber.jpg"
/38 = "nature_bark.jpg"
/39 = "food_butternut_squash.jpg"
/40 = "food_peach.jpg"
/41 = "food_endive.jpg"
/42 = "leaf_four.jpg"
/43 = "food_eggplant.jpg"
/44 = "plant_hosta.jpg"
/45 = "food_guava.jpg"
/46 = "plant_aloe.jpg"
/47 = "food_bokchoy.jpg"
/48 = "food_cilantro.jpg"
/49 = "leaf_oak-leaf.jpg"
/50 = "food_lemon.jpg"
/51 = "food_blackolive.jpg"
/52 = "food_blueberry02.jpg"
/53 = "food_grapefruit.jpg"
/54 = "food_pecans.jpg"
/55 = "rock_quartz.jpg"
/56 = "food_daikon.jpg"
/57 = "nature_chestnut.jpg"
/58 = "leaf_fan.jpg"
/59 = "flower_dandelion.jpg"
/60 = "food_peas.jpg"
/61 = "food_artichoke01b.jpg"
/62 = "food_pistachio.jpg"
/63 = "food_green_pepper.jpg"
/64 = "leaf_holly.jpg"
/65 = "plant_bamboo.jpg"
/66 = "flower_red.jpg"
/67 = "food_cabbage_purple.jpg"
/68 = "food_apple_red.jpg"
/69 = "food_grapes.jpg"
/70 = "food_lettuce_purple.jpg"
/71 = "rock_stone2.jpg"
/72 = "nature_branches.jpg"
/73 = "food_scallions.jpg"
/74 = "nature_feather.jpg"
/75 = "food_cherry.jpg"
/76 = "ocean_shell.jpg"
/77 = "food_avocado.jpg"
/78 = "food_banana03.jpg"
/79 = "rock_crystal_2.jpg"
/80 = "leaf_red.jpg"
/81 = "food_asperagus.jpg"
/82 = "nature_pinecone.jpg"
/83 = "food_sweet_potato.jpg"
/84 = "food_beans.jpg"
/85 = "flower_iris.jpg"
/86 = "rock_amethyst.jpg"
/87 = "food_sprouts.jpg"
/88 = "plant_clay.jpg"
/89 = "food_gourd.jpg"
/90 = "food_mushrooms.jpg"
/91 = "flower_red_tulip.jpg"
/92 = "ocean_sand-dollar.jpg"
/93 = "food_ginger.jpg"
/94 = "leaf_fern.jpg"
/95 = "rock_crystal.jpg"
/96 = "plant_hyacinth.jpg"
/97 = "food_carrot02.jpg"
/98 = "food_garlic01a.jpg"
/99 = "food_blackberry.jpg"
/100 = "food_kiwi03.jpg"
/101 = "food_brusselssprout.jpg"
/102 = "food_beet.jpg"
/103 = "nature_coral.jpg"
/104 = "food_honeycomb.jpg"
/105 = "flower_camelia.jpg"
/106 = "rock_mineral.jpg"
/107 = "food_peanut01.jpg"
/108 = "food_celery.jpg"
/109 = "leaf_red_single.jpg"
/110 = "food_coconut.jpg"
/111 = "plant_claybulb.jpg"
/112 = "food_okra.jpg"
/113 = "nature_cactus.jpg"
/114 = "food_leechee.jpg"
/115 = "food_chickpeas.jpg"
/116 = "plant_leaf.jpg"
/117 = "food_corn.jpg"
/118 = "food_oats.jpg"
/119 = "flower_lavendar.jpg"
/120 = "food_cinnamon.jpg"
/121 = "flower_rose.jpg"
/122 = "flower_lotus.jpg"
/123 = "flower_orange.jpg"
/124 = "flower_orchid.jpg"
/125 = "flower_stargazerlilly.jpg"
/126 = "flower_sun.jpg"
/127 = "food_almond.jpg"
/128 = "food_hotpepper_green.jpg"
/129 = "food_crushed_red_peppers.jpg"
/130 = "food_mushroom.jpg"
/131 = "food_onion_red.jpg"
/132 = "food_pepper_red.jpg"
/133 = "food_green_beans.jpg"
/134 = "food_squash.jpg"
/135 = "food_canteloupe.jpg"
/136 = "food_orange.jpg"
/137 = "food_lime.jpg"
/138 = "food_mango.jpg"
/139 = "food_coffeebean.jpg"
/140 = "food_cauliflower02.jpg"
/141 = "food_fennel.jpg"
/142 = "food_leek.jpg"
/143 = "food_zucchini.jpg"
/144 = "food_parsely.jpg"
/145 = "food_spinach.jpg"
/146 = "food_cashews.jpg"
/147 = "food_pear.jpg"
/148 = "food_pineapple.jpg"
/149 = "food_plum.jpg"
/150 = "food_pomegranate.jpg"
/151 = "food_pumpkin.jpg"
/152 = "food_radishes.jpg"
/153 = "food_raspberry02.jpg"
/154 = "food_rhubarb.jpg"
/155 = "food_star_fruit.jpg"
/156 = "food_strawberry.jpg"
/157 = "food_sunflower-seeds.jpg"
/158 = "food_tomato.jpg"
/159 = "food_watermelon.jpg"
/160 = "leaf_oranges.jpg"
/161 = "leaf_clover.jpg"
/162 = "leaf_sprig.jpg"
/163 = "leaf_yellow.jpg"
/164 = "nature_gumball.jpg"
/165 = "nature_hay.jpg"
/166 = "nature_moss.jpg"
/167 = "nature_nest.jpg"
/168 = "nature_tumbleweed.jpg"
/169 = "nature_wheat.jpg"
/170 = "ocean_shell_wide.jpg"
/171 = "ocean_starfish.jpg"
/172 = "plant_money.jpg"
/173 = "plant_polkadot.jpg"
/174 = "plant_sawtooth_cactus.jpg"
/175 = "plant_spider.jpg"
/176 = "plant_sprout.jpg"
/177 = "plant_succulent.jpg"
/178 = "rock_stone3.jpg"
/179 = "rock_obsideon.jpg"
/180 = "rock_several.jpg"
</item>

<item artStims>
/1 = "redbow.jpg"
/2 = "pencil_sharpener.jpg"
/3 = "alarmclock02b.jpg"
/4 = "mirror.jpg"
/5 = "toothbrush.jpg"
/6 = "candle.jpg"
/7 = "fan.jpg"
/8 = "change_purse.jpg"
/9 = "candelabra.jpg"
/10 = "airpump.jpg"
/11 = "spoon.jpg"
/12 = "stool01.jpg"
/13 = "blender.jpg"
/14 = "battery03a.jpg"
/15 = "coffee_maker.jpg"
/16 = "wagon.jpg"
/17 = "mug05.jpg"
/18 = "dirtspade.jpg"
/19 = "briefcase.jpg"
/20 = "electricrazor.jpg"
/21 = "bike_helmet.jpg"
/22 = "drinkshaker.jpg"
/23 = "video_camera.jpg"
/24 = "binocularcase01a.jpg"
/25 = "stethescope.jpg"
/26 = "packofgum.jpg"
/27 = "vase.jpg"
/28 = "belt01b.jpg"
/29 = "bowtie.jpg"
/30 = "skigloves.jpg"
/31 = "bib.jpg"
/32 = "piggybank.jpg"
/33 = "cheeseknife01.jpg"
/34 = "mortar_and_pestle.jpg"
/35 = "boxcutter04b.jpg"
/36 = "beerbottle.jpg"
/37 = "surfboard.jpg"
/38 = "blow_drier.jpg"
/39 = "soap.jpg"
/40 = "toaster.jpg"
/41 = "bracelet02a.jpg"
/42 = "sunglasses02a.jpg"
/43 = "baseball.jpg"
/44 = "basket.jpg"
/45 = "saltshaker01.jpg"
/46 = "wateringcan.jpg"
/47 = "bowl02b.jpg"
/48 = "stapler.jpg"
/49 = "towelrack.jpg"
/50 = "birdfeeder.jpg"
/51 = "badmintonracket.jpg"
/52 = "umbrella04.jpg"
/53 = "bell.jpg"
/54 = "smokingpipe.jpg"
/55 = "rubberglove02b.jpg"
/56 = "binoculars01b.jpg"
/57 = "barrel01.jpg"
/58 = "rolling_pin.jpg"
/59 = "paddleball.jpg"
/60 = "compactpowder.jpg"
/61 = "cigar.jpg"
/62 = "pliers.jpg"
/63 = "comb01a.jpg"
/64 = "studiolight.jpg"
/65 = "towels.jpg"
/66 = "christmaslights.jpg"
/67 = "peppermill02b.jpg"
/68 = "wallet.jpg"
/69 = "pencilcase02b.jpg"
/70 = "spraybottle01.jpg"
/71 = "cymbal.jpg"
/72 = "bowlingball.jpg"
/73 = "threeholepunch03.jpg"
/74 = "skippingrope.jpg"
/75 = "airplane.jpg"
/76 = "basketball.jpg"
/77 = "dice01b.jpg"
/78 = "dart.jpg"
/79 = "slingshot.jpg"
/80 = "skateboard.jpg"
/81 = "collander.jpg"
/82 = "phone.jpg"
/83 = "doorhandle.jpg"
/84 = "calculator.jpg"
/85 = "clock.jpg"
/86 = "pictureframe.jpg"
/87 = "downhillski.jpg"
/88 = "battleship.jpg"
/89 = "tissues.jpg"
/90 = "slinky.jpg"
/91 = "babybottle.jpg"
/92 = "tie02.jpg"
/93 = "chords.jpg"
/94 = "soccer_ball.jpg"
/95 = "8ball.jpg"
/96 = "aceofdiamond.jpg"
/97 = "watch.jpg"
/98 = "binder03a.jpg"
/99 = "saw.jpg"
/100 = "acousticguitar02.jpg"
/101 = "record.jpg"
/102 = "ridinghelmet.jpg"
/103 = "pillow01a.jpg"
/104 = "box01a.jpg"
/105 = "baseball_bat.jpg"
/106 = "oneholepunch.jpg"
/107 = "dolly02.jpg"
/108 = "stamp.jpg"
/109 = "nailclipper02b.jpg"
/110 = "notebook02a.jpg"
/111 = "scarf.jpg"
/112 = "balloon01b.jpg"
/113 = "toiletpaper01a.jpg"
/114 = "broom.jpg"
/115 = "snowboard.jpg"
/116 = "boxingglove02b.jpg"
/117 = "suitcase.jpg"
/118 = "wagonwheel.jpg"
/119 = "typewriter.jpg"
/120 = "usbkey.jpg"
/121 = "butter_knife.jpg"
/122 = "shovel02.jpg"
/123 = "chair.jpg"
/124 = "scooter.jpg"
/125 = "apron.jpg"
/126 = "bottleofredwine02.jpg"
/127 = "can_opener.jpg"
/128 = "razor04b.jpg"
/129 = "hourglass.jpg"
/130 = "camera01b.jpg"
/131 = "bird_house.jpg"
/132 = "swissarmyknife01a.jpg"
/133 = "pencil.jpg"
/134 = "wrench.jpg"
/135 = "trumpet.jpg"
/136 = "plugoutlet.jpg"
/137 = "paintroller.jpg"
/138 = "paint.jpg"
/139 = "book01a.jpg"
/140 = "travelmug.jpg"
/141 = "bow.jpg"
/142 = "curtain.jpg"
/143 = "antenna.jpg"
/144 = "hammer.jpg"
/145 = "plunger02.jpg"
/146 = "toyhockeystick02a.jpg"
/147 = "yarn.jpg"
/148 = "curlingiron01a.jpg"
/149 = "headphones.jpg"
/150 = "screwdriver.jpg"
/151 = "wineglass01.jpg"
/152 = "tripod.jpg"
/153 = "doorknob.jpg"
/154 = "axe01.jpg"
/155 = "tape.jpg"
/156 = "teapot.jpg"
/157 = "birdie.jpg"
/158 = "coffeepot01.jpg"
/159 = "tambourine.jpg"
/160 = "cookingpot.jpg"
/161 = "sponge.jpg"
/162 = "rainboot.jpg"
/163 = "cooler.jpg"
/164 = "backpack.jpg"
/165 = "speaker04.jpg"
/166 = "cabasa.jpg"
/167 = "beach_ball.jpg"
/168 = "bowl01.jpg"
/169 = "banjo.jpg"
/170 = "bowling_pin.jpg"
/171 = "boosterseat.jpg"
/172 = "taperuler.jpg"
/173 = "anchor.jpg"
/174 = "scissors11.jpg"
/175 = "carkeys.jpg"
/176 = "paper_towels.jpg"
/177 = "water_bottle.jpg"
/178 = "thermometer.jpg"
/179 = "whitehat.jpg"
/180 = "flashlight03a.jpg"
</item>




Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 83K
nrouhani - 6/25/2022
Dave - 6/25/2022
nrouhani - 6/24/2022
Dave - 6/24/2022
nrouhani - 6/24/2022
hi, i was wondering whether you're able to select a list from another list when setting the trial sequence. below i am trying to launch 33 trials from the first list of a list of lists. thanks for your help! 

<block learning_block1>
/ onblockbegin = [
  values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: stim selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>



Yes, sure that's possible.

<values>
/ blocklist = 1
</values>

<block example>
/ onblockbegin = [
    values.blocklist = 2;
]
/ trials = [1-4 = list.triallist]
</block>

<list triallist>
/ items = (list.a.nextvalue, list.b.nextvalue)
/ selectionmode = values.blocklist
</list>

<list a>
/ items = (trial.a1, trial.a2, trial.a3, trial.a4)
/ selectionmode = sequence
</list>

<list b>
/ items = (trial.b1, trial.b2, trial.b3, trial.b4)
/ selectionmode = sequence
</list>

<trial a1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("<%script.currenttrial%>")
</text>


Your syntax here is wrong:

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

It ought to be

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]

/ errormessage = false
/ preinstructions = (learninstructions)
</block>

thank you! it's kind of working now, but with a bug i can't explain. when the task moves from the first block to the second, it skips the first trial in the list for the second block ('trial.new_room'), but does not skip this trial for the third or fourth block. i played around with it a bit (e.g., tested starting with learning_block2, had the second block set to any of the other three learning lists) and discovered that no matter which trial list is called up, the second block in the experiment will skip the "trial.new_room" in that list.

code below - thank you for your help! 


<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

// trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>

Could you please provide code that can actually be run instead of something that is missing dozens of the things it references?

it's a long script that can't be run without images, thought i was highlighting the critical parts, but if the below is what you want, then thanks. 
*************************************************
Creating an Experiment
*************************************************

<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

/ preinstructions = (expinstructions1a,expinstructions1b, expinstructions2, expinstructions3, expinstructions4, expinstructions5, expinstructions6, expinstructions7, expinstructions8, expinstructions9, expinstructions10, expinstructions11, expinstructions12, expinstructions13)
/ blocks = [1=check; 2=practice; 3=learning_block1; 4=learning_block2; 5=learning_block3; 6=learning_block4; 7=memoryPrac; 8=memory_block1; 9=memory_block2; 10=memory_block3]

*************************************************
INITIALIZE
*************************************************

<values>
/ blockList = 0
/ natSample = 0
/ artSample = 0
/ outSample = 0
</values>

*************************************************
***// change by condition //***
*************************************************

/ scene order
/1 = "scenes_beach.jpg"
/2 = "scenes_city.jpg"
/3 = "scenes_forest.jpg"
/4 = "scenes_village.jpg"
<list sceneList>
/ items = (2,4,1,3)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ natural or artificial winner order: NAAN
<list nat_rewList>
/ items = (list.valStims_lr_4060_high.nextvalue,list.valStims_hr_2080_low.nextvalue,list.valStims_lr_2080_low.nextvalue,list.valStims_hr_4060_high.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list art_rewList>
/ items = (list.valStims_lr_4060_low.nextvalue,list.valStims_hr_2080_high.nextvalue,list.valStims_lr_2080_high.nextvalue,list.valStims_hr_4060_low.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ image order
<list art_cueList>
/ items = (list.learnStims_art_A_x.nextvalue,list.learnStims_art_B_x.nextvalue,list.learnStims_art_C_x.nextvalue,list.learnStims_art_D_x.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list art_outList>
/ items = (list.learnStims_art_A_y.nextvalue,list.learnStims_art_B_y.nextvalue,list.learnStims_art_C_y.nextvalue,list.learnStims_art_D_y.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list nat_cueList>
/ items = (list.learnStims_nat_A_x.nextvalue,list.learnStims_nat_B_x.nextvalue,list.learnStims_nat_C_x.nextvalue,list.learnStims_nat_D_x.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list nat_outList>
/ items = (list.learnStims_nat_A_y.nextvalue,list.learnStims_nat_B_y.nextvalue,list.learnStims_nat_C_y.nextvalue,list.learnStims_nat_D_y.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ jitter list order
<list jitter_estimateList>
/ items = (list.jitter_estimateA.nextvalue,list.jitter_estimateB.nextvalue,list.jitter_estimateC.nextvalue,list.jitter_estimateD.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list jitter_itiList>
/ items = (list.jitter_itiA.nextvalue,list.jitter_itiB.nextvalue,list.jitter_itiC.nextvalue,list.jitter_itiD.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>


*************************************************
CHECK
*************************************************

<survey check>
/ pages = [1=questions]
/ responsefontstyle = ("Arial", 13)s
/ itemfontstyle = ("Arial", 18)
/ txcolor = white
/ screencolor = darkgrey
/ itemspacing = 5%
/ showpagenumbers = false
</survey>

<surveypage questions>
/ caption = "Before starting the experiment, please answer the following questions and click submit. Once you've answered all questions correctly, the task will automatically load. If you do not answer correctly, you will see the instructions again."
/ fontstyle = ("Arial", 20)
/ txcolor = white
/ showquestionnumbers = false
/ questions = [1=question1; 2=question2; 3=question3; 4=question4]
/ branch = [
    if (radiobuttons.question1.response=="a) one type of item (either artificial or natural) is more valuable on average in each location"&&radiobuttons.question2.response=="b) the value of each pair determines the amount you are winning"&&radiobuttons.question3.response=="a) the average value of artificial or natural items within that location"&&radiobuttons.question4.response=="e) a+b+c") surveypage.success else surveypage.fail
]
</surveypage>

<radiobuttons question1>
/ caption = "Which statement is true about artificial versus natural items?"
/ options = ("a) one type of item (either artificial or natural) is more valuable on average in each location", "b) objects can take on any value, and whether they are artificial or natural does not matter", "c) items within a pair can belong to different category types")
</radiobuttons>

<radiobuttons question2>
/ caption = "Which statement is true about the resale value of each pair?"
/ options = ("a) the value of each pair doesn't affect your winnings","b) the value of each pair determines the amount you are winning","c) the value of each pair can change without warning")
</radiobuttons>

<radiobuttons question3>
/ caption = "What determines the resale value of each pair?"
/ options = ("a) the average value of artificial or natural items within that location", "b) the quality of the photos in the pair", "c) the quality and outside value of the items in the pair")
</radiobuttons>

<radiobuttons question4>
/ caption = "What should you pay attention to?"
/ options = ("a) the two items within a pair", "b) the reward value of each pair", "c) the location you found the items in", "d) a+b", "e) a+b+c")
</radiobuttons>

<surveypage success>
/ caption = "~n~n~n~nCongrats! You answered every question correctly. You will next get to practice the task.~n~nNote that to get used to the task, on the first 4 turns you will have 6 seconds rather than 3 seconds to estimate average values.~n~nAfter that, you will have 3 seconds to answer, the same as the normal task. Please continue to the practice task."
/ fontstyle = ("Arial", 20)
/ txcolor = white
/ showbackbutton = false
</surveypage>

<surveypage fail>
/ caption = "You did not answer every question correctly. Please re-read the instructions below and try again by clicking the back button.
In this experiment, you will be travel to four different locations where you will pick up artificial objects (man-made items such as bowls or sports equipment) and natural items (such as plants or food items) to sell.
Within each location, one of the two categories, 'artificial' or 'natural' items, will be worth more money overall making it the winner.
To learn about the values of artificial and natural items in each location, on each turn, you will find and sell either two artificial or two natural items.
Pairs of items have a value between 0 and 100 cents. You will get a commission of 10% of the value of each pair, paid to you at the end of the experiment.
Note that the value of the pair of items is not determined by the specific items but by the value of that category (i.e., ‘artificial’ or ‘natural’ ) in the location you are in.
For each pair of items you find, you will first see one of the items and estimate how much you think on average items from that category (artificial or natural) are worth in that location, from 0 to 100 cents. You will have 3 seconds to enter your estimate.
At first, you will not know the answer, but please make your best guess of what the average value of that category is in your location. To submit your answer, enter your guess in the answer box. Afterwards, the true value of the pair will appear along with the second item belonging to the pair.
Remember: Although different pairs of items have different values, their worth is solely determined by the general value of their category in the location you are in. The average value of each type of item category (artificial or natural) will not change within a location, but may change when you arrive at a new location.
In addition, specific values of pairs will vary around the mean value, and each location has different amounts of variability in their category values. For example, in one location, let's say pairs of natural items can be sold for 50 cents on average, which, in practice, may mean that you would find one pair that is worth 60 cents and another worth 40 cents, and yet a third will be worth 50 cents. In another location, where there is greater resale variability, an average value of 50 cents could look like pairs of items that are worth 30 cents and 70 cents.
These levels of resale variability stay the same in one location, but may change from one location to another.
Pay attention to the resale value of each pair, so you can better guess the average value of artificial and natural items within each location.
Importantly, after touring all locations, you will be asked to indicate which item category was more valuable in each location (which category was the 'winner' in each location). To help answer correctly, pay attention to where each item is found as well as their resale values.
"
/ fontstyle = ("Arial", 11)
/ txcolor = white
/ nextbuttonposition = (-10%, -10%)
</surveypage>

*************************************************
PRACTICE
*************************************************

<block practice>
/ trials = [1=practiceR; 2-13=pause_practice]
/ errormessage = false
</block>

/ new room
<trial practiceR>
/ stimulustimes = [0=blank, scenePractice, newRoomText, welcomePractice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// practice trials
<trial pause_practice>
/ stimulustimes = [0=blank,scenePractice,fixation]
/ trialduration = list.jitterPrac_iti.nextvalue
/ validresponse = (noresponse)
/ branch = [
    if (list.practice.nextvalue==1){
        trial.practice_nat;
    }else{
        trial.practice_art;
    }    
]
</trial>

<openended estimate_practice>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=scenePractice, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitterPrac_estimate.nextvalue
/ trialduration = list.jitterPrac_baseline.nextvalue + list.jitterPrac_estimate.currentvalue
/ branch = [
    if (list.practice.currentvalue==1){
        trial.outcome_practice_nat;
    }else{
        trial.outcome_practice_art;
    };    
]
</openended>

/ practice natural items
<trial practice_nat>
/ stimulustimes = [0=blank,practStim_nat]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_practice
]
</trial>

<trial outcome_practice_nat>
/ stimulustimes = [0=blank,practStim_nat, val_practice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

/ practice artificial items
<trial practice_art>
/ stimulustimes = [0=blank,practStim_art]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_practice
]
</trial>

<trial outcome_practice_art>
/ stimulustimes = [0=blank,practStim_art, val_practice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

<list practice>
/ items = (1,2,1,2,2,1,1,2,1,1,2,2)
/ selectionmode = sequence
</list>

<list pracStims_art>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12)
/ poolsize = 12
/ selectionmode = random
/ selectionrate = always
</list>

<list pracStims_nat>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12)
/ poolsize = 12
/ selectionmode = random
/ selectionrate = always
</list>

<list jitterPrac_iti>
/ items = (1000,3000,5000,1000,3000,5000,1000,3000,5000,1000,3000,5000)
/ selectionmode = random
/ selectionrate = always
</list>

<list jitterPrac_baseline>
/ items = (6000,6000,6000,6000,3000,3000,3000,3000,3000,3000,3000,3000)
/ selectionmode = sequence
</list>

<list jitterPrac_estimate>
/ items = (0,2000,0,2000,0,2000,0,2000,0,2000,0,2000)
/ selectionmode = random
/ selectionrate = always
</list>


*************************************************
LEARNING LISTS
*************************************************

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

// learning: randomize images within group and block

/ artificial stim
<list learnStims_art_A_x>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_A_y>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_B_x>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_B_y>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_C_x>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_C_y>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_D_x>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_D_y>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionrate = always
</list>

<list newStims_art>
/ items = (121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180)
/ poolsize = 60
/ selectionrate = always
</list>

/ natural stims
<list learnStims_nat_A_x>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_A_y>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_B_x>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_B_y>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_C_x>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_C_y>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_D_x>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_D_y>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionrate = always
</list>

<list newStims_nat>
/ items = (121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180)
/ poolsize = 60
/ selectionrate = always
</list>

// learning: outcome lists

/ lr_4060
<list valStims_lr_4060_high>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_lr_4060_low>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ lr_2080
<list valStims_lr_2080_high>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_lr_2080_low>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ hr 4060
<list valStims_hr_4060_high>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_hr_4060_low>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ hr 2080
<list valStims_hr_2080_high>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_hr_2080_low>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionmode = sequence
</list>

// jitter lists

/ jitter_estimate
<list jitter_estimateA>
/ items = (2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateB>
/ items = (2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000,0,2000,0,2000,0,2000,2000,0,0,2000,0,2000,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateC>
/ items = (2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,0,2000,2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateD>
/ items = (0,2000,2000,0,2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000,2000,0,0,2000,0,2000,2000,0)
/ poolsize = 30
/ selectionmode = sequence
</list>

/ jitter_iti
<list jitter_itiA>
/ items = (1000,3000,5000,1000,5000,3000,3000,1000,5000,5000,1000,3000,1000,5000,3000,3000,1000,5000,3000,5000,1000,3000,1000,5000,1000,3000,5000,3000,1000,5000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiB>
/ items = (1000,5000,3000,5000,1000,3000,1000,5000,3000,3000,5000,1000,5000,1000,3000,1000,5000,3000,5000,1000,3000,1000,3000,5000,3000,1000,5000,1000,5000,3000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiC>
/ items = (3000,5000,1000,5000,1000,3000,5000,3000,1000,1000,3000,5000,1000,5000,3000,5000,1000,3000,1000,5000,3000,3000,1000,5000,5000,1000,3000,1000,3000,5000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiD>
/ items = (3000,5000,1000,3000,1000,5000,1000,3000,5000,3000,5000,1000,1000,5000,3000,1000,3000,5000,1000,5000,3000,3000,1000,5000,3000,5000,1000,5000,1000,3000)
/ poolsize = 30
/ selectionmode = sequence
</list>


*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>

*************************************************
Creating Instructions
*************************************************
// initial learning
<htmlpage expinstructions1a>
/ file = "instruct-1a.html"
</htmlpage>

<htmlpage expinstructions1b>
/ file = "instruct-1b.html"
</htmlpage>

<htmlpage expinstructions2>
/ file = "instruct-2.html"
</htmlpage>

<htmlpage expinstructions3>
/ file = "instruct-3.html"
</htmlpage>

<htmlpage expinstructions4>
/ file = "instruct-4.html"
</htmlpage>

<htmlpage expinstructions5>
/ file = "instruct-5.html"
</htmlpage>

<htmlpage expinstructions6>
/ file = "instruct-6.html"
</htmlpage>

<htmlpage expinstructions7>
/ file = "instruct-7.html"
</htmlpage>

<htmlpage expinstructions8>
/ file = "instruct-8.html"
</htmlpage>

<htmlpage expinstructions9>
/ file = "instruct-9.html"
</htmlpage>

<htmlpage expinstructions10>
/ file = "instruct-10.html"
</htmlpage>

<htmlpage expinstructions11>
/ file = "instruct-11.html"
</htmlpage>

<htmlpage expinstructions12>
/ file = "instruct-12.html"
</htmlpage>

<htmlpage expinstructions13>
/ file = "instruct-13.html"
</htmlpage>

// learning
<htmlpage learninstructions>
/ file = "instruct-ready-learning.html"
</htmlpage>

// memory
<htmlpage meminstructions1>
/ file = "instruct-item1.html"
</htmlpage>

<htmlpage meminstructions2>
/ file = "instruct-item2.html"
</htmlpage>

<htmlpage meminstructions3>
/ file = "instruct-ready-memory.html"
</htmlpage>

// choice
<htmlpage choiceinstructions>
/ file = "instruct-choice.html"
</htmlpage>

*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = (175, 175, 175)
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>

*************************************************
Stimuli Presentation
*************************************************

<text fixation>
/ items = (" finding new items...")
/ txbgcolor = white
/ txcolor = darkgray
/ position = (50%, 50%)
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ erase = false
/ vjustify = center
</text>

<text cross>
/ items = ("+")
/ txbgcolor = transparent
/ txcolor = white
/ position = (50%, 50%)
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ erase = false
/ vjustify = center
</text>

// PRACTICE
/ scene
<picture scenePractice>
/ items = ("scenes_practice.jpg")
/ size = (100%, 100%)
/ erase = false
</picture>

<text welcomePractice>
/ items = ("Welcome to the mountains!")
/ vjustify = center
/ size = (500,150)
/ fontstyle = ("Helvetica", 5%, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

/ practice stims
<picture practStim_nat>
/ items = prac_natStims
/ size = (30%, 30%)
/ select = list.pracStims_nat.nextvalue
/ erase = false
</picture>

<picture practStim_art>
/ items = prac_artStims
/ size = (30%, 30%)
/ select = list.pracStims_art.nextvalue
/ erase = false
</picture>

/ rewards
<text val_practice>
/ items = valuesP
/ select = sequence
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ vjustify = center
/ hjustify = center
/ vposition = 25
/ hposition = 50
/ txcolor = chartreuse
/ erase = false
/ size = (13%,13%)
</text>

// LEARNING
/ scene
<picture sceneStim_new>
/ items = sceneStims
/ size = (100%, 100%)
/ select = list.sceneList
/ erase = false
</picture>

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text welcomeScene>
/ items = sceneWelcome
/ select = list.sceneList
/ vjustify = center
/ size = (500,150)
/ fontstyle = ("Helvetica", 5%, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<picture sceneStim_current>
/ items = sceneStims
/ size = (100%, 100%)
/ select = list.sceneList
/ erase = false
</picture>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

/ rewards
<text outcomes>
/ items = outcomeStims
/ select = values.outSample
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ vjustify = center
/ hjustify = center
/ vposition = 25
/ hposition = 50
/ txcolor = chartreuse
/ erase = false
/ size = (13%,13%)
</text>

/ stims
<picture natP>
/ items = natStims
/ size = (30%, 30%)
/ select = values.natSample
/ erase = false
</picture>

<picture artP>
/ items = artStims
/ size = (30%, 30%)
/ select = values.artSample
/ erase = false
</picture>

/ break stims
<text learnBreakStatus>
/ items = learnStatus
/ select = sequence
/ vjustify = center
/ size = (1000,200)
/ fontstyle = ("Helvetica", 20, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txcolor = white
/ txbgcolor = transparent
</text>

<text learnBreakText>
/ items = ("You can take a break now. When you are ready to continue, please press the spacebar.")
/ vjustify = center
/ size = (1000,200)
/ fontstyle = ("Helvetica", 20, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txcolor = white
/ txbgcolor = transparent
</text>

// CHOICE
<text choiceMemQ>
/ items = ("press 1 or 2 to indicate which category was more rewarding in this location")
/ vjustify = center
/ size = (600,100)
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vposition = (20)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

<picture artificialStim>
/ items = ("artificial.png")
/ size = (30%, 30%)
/ vposition = 50
/ hposition = 35
</picture>

<picture naturalStim>
/ items = ("natural.png")
/ size = (30%, 30%)
/ vposition = 50
/ hposition = 65
</picture>

<text oneC>
/ items = ("1")
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vjustify = center
/ hjustify = center
/ vposition = 32
/ hposition = 35
/ txcolor = darkgray
/ erase = false
/ size = (4%,4%)
</text>

<text twoC>
/ items = ("2")
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vjustify = center
/ hjustify = center
/ vposition = 32
/ hposition = 65
/ txcolor = darkgray
/ erase = false
/ size = (4%,4%)
</text>

*************************************************
Item Lists
*************************************************

// prac image item lists
<item prac_artStims>
/1 = "prac_brooch.jpg"
/2 = "prac_chisel02b.jpg"
/3 = "prac_clotheshanger.jpg"
/4 = "prac_jack.jpg"
/5 = "prac_key01.jpg"
/6 = "prac_makeupbrush02a.jpg"
/7 = "prac_microwave.jpg"
/8 = "prac_nailpolish02a.jpg"
/9 = "prac_morningstar.jpg"
/10 = "prac_ring02.jpg"
/11 = "prac_snaredrum.jpg"
/12 = "prac_woodenshoe.jpg"
</item>

<item prac_natStims>
/1 = "prac_barnacles.jpg"
/2 = "prac_bonsai.jpg"
/3 = "prac_crab-claw.jpg"
/4 = "prac_dandilion-seeds.jpg"
/5 = "prac_durian.jpg"
/6 = "prac_honey.jpg"
/7 = "prac_ice.jpg"
/8 = "prac_nautilus.jpg"
/9 = "prac_papaya.jpg"
/10 = "prac_redtulips.jpg"
/11 = "prac_rice.jpg"
/12 = "prac_rose.jpg"
</item>

<item prac_mem>
/1 = "prac_dreamcatcher_memExample.jpg"
/2 = "prac_ice.jpg"
/3 = "prac_fire_hydrant_memExample.jpg"
/4 = "prac_durian.jpg"
</item>

<item valuesP>
/1 = "34¢"
/2 = "68¢"
/3 = "25¢"
/4 = "77¢"
/5 = "58¢"
/6 = "31¢"
/7 = "17¢"
/8 = "60¢"
/9 = "44¢"
/10 = "29¢"
/11 = "85¢"
/12 = "72¢"
</item>

// context scenes
<item sceneStims>
/1 = "scenes_beach.jpg"
/2 = "scenes_city.jpg"
/3 = "scenes_forest.jpg"
/4 = "scenes_village.jpg"
</item>

<item sceneWelcome>
/1 = "Welcome to the beach!"
/2 = "Welcome to the city!"
/3 = "Welcome to the forest!"
/4 = "Welcome to the village!"
</item>

<item learnStatus>
/1 = "Good start, you have visited one location,~n and have three left!"
/2 = "You are now half-way through! ~nYou have visited two locations, and have two left."
/3 = "You have visited three locations, ~nand only have one left!"
/4 = "You have visited all locations, ~nyou will now continue to the next phase of the study!"
</item>

<item memStatus>
/1 = "You have completed one section,~n and have two left!"
/2 = "You only have one section left!"
</item>

/ valStims_lr_4060_high (1-15)
/ valStims_lr_4060_low (16-30)
/ valStims_lr_2080_high (31-45)
/ valStims_lr_2080_low (46-60)
/ valStims_hr_4060_high (61-75)
/ valStims_hr_4060_low (76-90)
/ valStims_hr_2080_high (91-105)
/ valStims_hr_2080_low (106-120)

<item outcomeStims>
/1 = "52¢"
/2 = "63¢"
/3 = "69¢"
/4 = "61¢"
/5 = "55¢"
/6 = "50¢"
/7 = "62¢"
/8 = "70¢"
/9 = "65¢"
/10 = "53¢"
/11 = "59¢"
/12 = "68¢"
/13 = "51¢"
/14 = "64¢"
/15 = "58¢"
/16 = "43¢"
/17 = "32¢"
/18 = "50¢"
/19 = "41¢"
/20 = "34¢"
/21 = "49¢"
/22 = "33¢"
/23 = "45¢"
/24 = "35¢"
/25 = "38¢"
/26 = "36¢"
/27 = "48¢"
/28 = "30¢"
/29 = "46¢"
/30 = "40¢"
/31 = "70¢"
/32 = "79¢"
/33 = "86¢"
/34 = "75¢"
/35 = "90¢"
/36 = "81¢"
/37 = "72¢"
/38 = "76¢"
/39 = "88¢"
/40 = "83¢"
/41 = "73¢"
/42 = "84¢"
/43 = "80¢"
/44 = "89¢"
/45 = "74¢"
/46 = "25¢"
/47 = "11¢"
/48 = "30¢"
/49 = "18¢"
/50 = "16¢"
/51 = "26¢"
/52 = "12¢"
/53 = "15¢"
/54 = "28¢"
/55 = "19¢"
/56 = "29¢"
/57 = "14¢"
/58 = "20¢"
/59 = "13¢"
/60 = "24¢"
/61 = "60¢"
/62 = "41¢"
/63 = "78¢"
/64 = "49¢"
/65 = "72¢"
/66 = "48¢"
/67 = "59¢"
/68 = "42¢"
/69 = "80¢"
/70 = "71¢"
/71 = "50¢"
/72 = "61¢"
/73 = "76¢"
/74 = "43¢"
/75 = "70¢"
/76 = "59¢"
/77 = "32¢"
/78 = "40¢"
/79 = "22¢"
/80 = "47¢"
/81 = "56¢"
/82 = "41¢"
/83 = "21¢"
/84 = "33¢"
/85 = "49¢"
/86 = "23¢"
/87 = "42¢"
/88 = "57¢"
/89 = "48¢"
/90 = "30¢"
/91 = "68¢"
/92 = "81¢"
/93 = "92¢"
/94 = "62¢"
/95 = "97¢"
/96 = "77¢"
/97 = "61¢"
/98 = "99¢"
/99 = "70¢"
/100 = "93¢"
/101 = "60¢"
/102 = "100¢"
/103 = "71¢"
/104 = "87¢"
/105 = "82¢"
/106 = "10¢"
/107 = "32¢"
/108 = "18¢"
/109 = "38¢"
/110 = "2¢"
/111 = "11¢"
/112 = "28¢"
/113 = "19¢"
/114 = "3¢"
/115 = "40¢"
/116 = "0¢"
/117 = "20¢"
/118 = "9¢"
/119 = "37¢"
/120 = "33¢"
</item>


*************************************************
***// change by condition //***
*************************************************

// stim set 1
<item natStims>
/1 = "flower_buttercup.jpg"
/2 = "food_grapes_red.jpg"
/3 = "food_romaine.jpg"
/4 = "food_cabbage_green.jpg"
/5 = "nature_dirt.jpg"
/6 = "leaf_green.jpg"
/7 = "food_pepper_corns.jpg"
/8 = "flower_lillies.jpg"
/9 = "nature_star-anise.jpg"
/10 = "food_grass.jpg"
/11 = "plant_full.jpg"
/12 = "food_broccoli01b.jpg"
/13 = "leaf_pine.jpg"
/14 = "food_apple_green.jpg"
/15 = "food_hotpepper_red.jpg"
/16 = "food_potatoes.jpg"
/17 = "plant_lily.jpg"
/18 = "plant_air-plant.jpg"
/19 = "food_onions_yellow.jpg"
/20 = "food_oyster.jpg"
/21 = "rock_pinkcrystal.jpg"
/22 = "food_cranberries.jpg"
/23 = "food_dates.jpg"
/24 = "ocean_seashell01.jpg"
/25 = "food_walnuts.jpg"
/26 = "food_snappeas.jpg"
/27 = "nature_acorn.jpg"
/28 = "food_cherries_white.jpg"
/29 = "flower_hydrangea.jpg"
/30 = "food_sprouts_alpha.jpg"
/31 = "nature_wood.jpg"
/32 = "food_fig.jpg"
/33 = "rock_stone.jpg"
/34 = "flower_cherry_blossom.jpg"
/35 = "ocean_clam-shell.jpg"
/36 = "food_eggs.jpg"
/37 = "food_cucumber.jpg"
/38 = "nature_bark.jpg"
/39 = "food_butternut_squash.jpg"
/40 = "food_peach.jpg"
/41 = "food_endive.jpg"
/42 = "leaf_four.jpg"
/43 = "food_eggplant.jpg"
/44 = "plant_hosta.jpg"
/45 = "food_guava.jpg"
/46 = "plant_aloe.jpg"
/47 = "food_bokchoy.jpg"
/48 = "food_cilantro.jpg"
/49 = "leaf_oak-leaf.jpg"
/50 = "food_lemon.jpg"
/51 = "food_blackolive.jpg"
/52 = "food_blueberry02.jpg"
/53 = "food_grapefruit.jpg"
/54 = "food_pecans.jpg"
/55 = "rock_quartz.jpg"
/56 = "food_daikon.jpg"
/57 = "nature_chestnut.jpg"
/58 = "leaf_fan.jpg"
/59 = "flower_dandelion.jpg"
/60 = "food_peas.jpg"
/61 = "food_artichoke01b.jpg"
/62 = "food_pistachio.jpg"
/63 = "food_green_pepper.jpg"
/64 = "leaf_holly.jpg"
/65 = "plant_bamboo.jpg"
/66 = "flower_red.jpg"
/67 = "food_cabbage_purple.jpg"
/68 = "food_apple_red.jpg"
/69 = "food_grapes.jpg"
/70 = "food_lettuce_purple.jpg"
/71 = "rock_stone2.jpg"
/72 = "nature_branches.jpg"
/73 = "food_scallions.jpg"
/74 = "nature_feather.jpg"
/75 = "food_cherry.jpg"
/76 = "ocean_shell.jpg"
/77 = "food_avocado.jpg"
/78 = "food_banana03.jpg"
/79 = "rock_crystal_2.jpg"
/80 = "leaf_red.jpg"
/81 = "food_asperagus.jpg"
/82 = "nature_pinecone.jpg"
/83 = "food_sweet_potato.jpg"
/84 = "food_beans.jpg"
/85 = "flower_iris.jpg"
/86 = "rock_amethyst.jpg"
/87 = "food_sprouts.jpg"
/88 = "plant_clay.jpg"
/89 = "food_gourd.jpg"
/90 = "food_mushrooms.jpg"
/91 = "flower_red_tulip.jpg"
/92 = "ocean_sand-dollar.jpg"
/93 = "food_ginger.jpg"
/94 = "leaf_fern.jpg"
/95 = "rock_crystal.jpg"
/96 = "plant_hyacinth.jpg"
/97 = "food_carrot02.jpg"
/98 = "food_garlic01a.jpg"
/99 = "food_blackberry.jpg"
/100 = "food_kiwi03.jpg"
/101 = "food_brusselssprout.jpg"
/102 = "food_beet.jpg"
/103 = "nature_coral.jpg"
/104 = "food_honeycomb.jpg"
/105 = "flower_camelia.jpg"
/106 = "rock_mineral.jpg"
/107 = "food_peanut01.jpg"
/108 = "food_celery.jpg"
/109 = "leaf_red_single.jpg"
/110 = "food_coconut.jpg"
/111 = "plant_claybulb.jpg"
/112 = "food_okra.jpg"
/113 = "nature_cactus.jpg"
/114 = "food_leechee.jpg"
/115 = "food_chickpeas.jpg"
/116 = "plant_leaf.jpg"
/117 = "food_corn.jpg"
/118 = "food_oats.jpg"
/119 = "flower_lavendar.jpg"
/120 = "food_cinnamon.jpg"
/121 = "flower_rose.jpg"
/122 = "flower_lotus.jpg"
/123 = "flower_orange.jpg"
/124 = "flower_orchid.jpg"
/125 = "flower_stargazerlilly.jpg"
/126 = "flower_sun.jpg"
/127 = "food_almond.jpg"
/128 = "food_hotpepper_green.jpg"
/129 = "food_crushed_red_peppers.jpg"
/130 = "food_mushroom.jpg"
/131 = "food_onion_red.jpg"
/132 = "food_pepper_red.jpg"
/133 = "food_green_beans.jpg"
/134 = "food_squash.jpg"
/135 = "food_canteloupe.jpg"
/136 = "food_orange.jpg"
/137 = "food_lime.jpg"
/138 = "food_mango.jpg"
/139 = "food_coffeebean.jpg"
/140 = "food_cauliflower02.jpg"
/141 = "food_fennel.jpg"
/142 = "food_leek.jpg"
/143 = "food_zucchini.jpg"
/144 = "food_parsely.jpg"
/145 = "food_spinach.jpg"
/146 = "food_cashews.jpg"
/147 = "food_pear.jpg"
/148 = "food_pineapple.jpg"
/149 = "food_plum.jpg"
/150 = "food_pomegranate.jpg"
/151 = "food_pumpkin.jpg"
/152 = "food_radishes.jpg"
/153 = "food_raspberry02.jpg"
/154 = "food_rhubarb.jpg"
/155 = "food_star_fruit.jpg"
/156 = "food_strawberry.jpg"
/157 = "food_sunflower-seeds.jpg"
/158 = "food_tomato.jpg"
/159 = "food_watermelon.jpg"
/160 = "leaf_oranges.jpg"
/161 = "leaf_clover.jpg"
/162 = "leaf_sprig.jpg"
/163 = "leaf_yellow.jpg"
/164 = "nature_gumball.jpg"
/165 = "nature_hay.jpg"
/166 = "nature_moss.jpg"
/167 = "nature_nest.jpg"
/168 = "nature_tumbleweed.jpg"
/169 = "nature_wheat.jpg"
/170 = "ocean_shell_wide.jpg"
/171 = "ocean_starfish.jpg"
/172 = "plant_money.jpg"
/173 = "plant_polkadot.jpg"
/174 = "plant_sawtooth_cactus.jpg"
/175 = "plant_spider.jpg"
/176 = "plant_sprout.jpg"
/177 = "plant_succulent.jpg"
/178 = "rock_stone3.jpg"
/179 = "rock_obsideon.jpg"
/180 = "rock_several.jpg"
</item>

<item artStims>
/1 = "redbow.jpg"
/2 = "pencil_sharpener.jpg"
/3 = "alarmclock02b.jpg"
/4 = "mirror.jpg"
/5 = "toothbrush.jpg"
/6 = "candle.jpg"
/7 = "fan.jpg"
/8 = "change_purse.jpg"
/9 = "candelabra.jpg"
/10 = "airpump.jpg"
/11 = "spoon.jpg"
/12 = "stool01.jpg"
/13 = "blender.jpg"
/14 = "battery03a.jpg"
/15 = "coffee_maker.jpg"
/16 = "wagon.jpg"
/17 = "mug05.jpg"
/18 = "dirtspade.jpg"
/19 = "briefcase.jpg"
/20 = "electricrazor.jpg"
/21 = "bike_helmet.jpg"
/22 = "drinkshaker.jpg"
/23 = "video_camera.jpg"
/24 = "binocularcase01a.jpg"
/25 = "stethescope.jpg"
/26 = "packofgum.jpg"
/27 = "vase.jpg"
/28 = "belt01b.jpg"
/29 = "bowtie.jpg"
/30 = "skigloves.jpg"
/31 = "bib.jpg"
/32 = "piggybank.jpg"
/33 = "cheeseknife01.jpg"
/34 = "mortar_and_pestle.jpg"
/35 = "boxcutter04b.jpg"
/36 = "beerbottle.jpg"
/37 = "surfboard.jpg"
/38 = "blow_drier.jpg"
/39 = "soap.jpg"
/40 = "toaster.jpg"
/41 = "bracelet02a.jpg"
/42 = "sunglasses02a.jpg"
/43 = "baseball.jpg"
/44 = "basket.jpg"
/45 = "saltshaker01.jpg"
/46 = "wateringcan.jpg"
/47 = "bowl02b.jpg"
/48 = "stapler.jpg"
/49 = "towelrack.jpg"
/50 = "birdfeeder.jpg"
/51 = "badmintonracket.jpg"
/52 = "umbrella04.jpg"
/53 = "bell.jpg"
/54 = "smokingpipe.jpg"
/55 = "rubberglove02b.jpg"
/56 = "binoculars01b.jpg"
/57 = "barrel01.jpg"
/58 = "rolling_pin.jpg"
/59 = "paddleball.jpg"
/60 = "compactpowder.jpg"
/61 = "cigar.jpg"
/62 = "pliers.jpg"
/63 = "comb01a.jpg"
/64 = "studiolight.jpg"
/65 = "towels.jpg"
/66 = "christmaslights.jpg"
/67 = "peppermill02b.jpg"
/68 = "wallet.jpg"
/69 = "pencilcase02b.jpg"
/70 = "spraybottle01.jpg"
/71 = "cymbal.jpg"
/72 = "bowlingball.jpg"
/73 = "threeholepunch03.jpg"
/74 = "skippingrope.jpg"
/75 = "airplane.jpg"
/76 = "basketball.jpg"
/77 = "dice01b.jpg"
/78 = "dart.jpg"
/79 = "slingshot.jpg"
/80 = "skateboard.jpg"
/81 = "collander.jpg"
/82 = "phone.jpg"
/83 = "doorhandle.jpg"
/84 = "calculator.jpg"
/85 = "clock.jpg"
/86 = "pictureframe.jpg"
/87 = "downhillski.jpg"
/88 = "battleship.jpg"
/89 = "tissues.jpg"
/90 = "slinky.jpg"
/91 = "babybottle.jpg"
/92 = "tie02.jpg"
/93 = "chords.jpg"
/94 = "soccer_ball.jpg"
/95 = "8ball.jpg"
/96 = "aceofdiamond.jpg"
/97 = "watch.jpg"
/98 = "binder03a.jpg"
/99 = "saw.jpg"
/100 = "acousticguitar02.jpg"
/101 = "record.jpg"
/102 = "ridinghelmet.jpg"
/103 = "pillow01a.jpg"
/104 = "box01a.jpg"
/105 = "baseball_bat.jpg"
/106 = "oneholepunch.jpg"
/107 = "dolly02.jpg"
/108 = "stamp.jpg"
/109 = "nailclipper02b.jpg"
/110 = "notebook02a.jpg"
/111 = "scarf.jpg"
/112 = "balloon01b.jpg"
/113 = "toiletpaper01a.jpg"
/114 = "broom.jpg"
/115 = "snowboard.jpg"
/116 = "boxingglove02b.jpg"
/117 = "suitcase.jpg"
/118 = "wagonwheel.jpg"
/119 = "typewriter.jpg"
/120 = "usbkey.jpg"
/121 = "butter_knife.jpg"
/122 = "shovel02.jpg"
/123 = "chair.jpg"
/124 = "scooter.jpg"
/125 = "apron.jpg"
/126 = "bottleofredwine02.jpg"
/127 = "can_opener.jpg"
/128 = "razor04b.jpg"
/129 = "hourglass.jpg"
/130 = "camera01b.jpg"
/131 = "bird_house.jpg"
/132 = "swissarmyknife01a.jpg"
/133 = "pencil.jpg"
/134 = "wrench.jpg"
/135 = "trumpet.jpg"
/136 = "plugoutlet.jpg"
/137 = "paintroller.jpg"
/138 = "paint.jpg"
/139 = "book01a.jpg"
/140 = "travelmug.jpg"
/141 = "bow.jpg"
/142 = "curtain.jpg"
/143 = "antenna.jpg"
/144 = "hammer.jpg"
/145 = "plunger02.jpg"
/146 = "toyhockeystick02a.jpg"
/147 = "yarn.jpg"
/148 = "curlingiron01a.jpg"
/149 = "headphones.jpg"
/150 = "screwdriver.jpg"
/151 = "wineglass01.jpg"
/152 = "tripod.jpg"
/153 = "doorknob.jpg"
/154 = "axe01.jpg"
/155 = "tape.jpg"
/156 = "teapot.jpg"
/157 = "birdie.jpg"
/158 = "coffeepot01.jpg"
/159 = "tambourine.jpg"
/160 = "cookingpot.jpg"
/161 = "sponge.jpg"
/162 = "rainboot.jpg"
/163 = "cooler.jpg"
/164 = "backpack.jpg"
/165 = "speaker04.jpg"
/166 = "cabasa.jpg"
/167 = "beach_ball.jpg"
/168 = "bowl01.jpg"
/169 = "banjo.jpg"
/170 = "bowling_pin.jpg"
/171 = "boosterseat.jpg"
/172 = "taperuler.jpg"
/173 = "anchor.jpg"
/174 = "scissors11.jpg"
/175 = "carkeys.jpg"
/176 = "paper_towels.jpg"
/177 = "water_bottle.jpg"
/178 = "thermometer.jpg"
/179 = "whitehat.jpg"
/180 = "flashlight03a.jpg"
</item>




Thank you for the code. Isolated excerpts are of little use if I have to spend 30 minutes creating dummy elements to get the code to run and -- more importantly -- have to make guesses about all the things that aren't there. You are welcome to point out the parts you deem relevant, but in addiion please provide something that actually runs. Also, please don't paste lengthy scripts into a post's body -- attach the actual script file to your post instread (+Insert -> Add File). If your code requires external files to run, provide those too. Ideally, put everything needed in a ZIP archive and attach the archive.

All that said, add

<expt>
/ onblockbegin = [
    list.trialList_2080A.reset();
    list.trialList_2080B.reset();
    list.trialList_4060A.reset();
    list.trialList_4060B.reset();
]

/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

and that should make the problem go away.


nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
Dave - 6/25/2022
nrouhani - 6/25/2022
Dave - 6/25/2022
nrouhani - 6/24/2022
Dave - 6/24/2022
nrouhani - 6/24/2022
hi, i was wondering whether you're able to select a list from another list when setting the trial sequence. below i am trying to launch 33 trials from the first list of a list of lists. thanks for your help! 

<block learning_block1>
/ onblockbegin = [
  values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: stim selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>



Yes, sure that's possible.

<values>
/ blocklist = 1
</values>

<block example>
/ onblockbegin = [
    values.blocklist = 2;
]
/ trials = [1-4 = list.triallist]
</block>

<list triallist>
/ items = (list.a.nextvalue, list.b.nextvalue)
/ selectionmode = values.blocklist
</list>

<list a>
/ items = (trial.a1, trial.a2, trial.a3, trial.a4)
/ selectionmode = sequence
</list>

<list b>
/ items = (trial.b1, trial.b2, trial.b3, trial.b4)
/ selectionmode = sequence
</list>

<trial a1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial a4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b1>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b2>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b3>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial b4>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("<%script.currenttrial%>")
</text>


Your syntax here is wrong:

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list.nextvalue]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

It ought to be

<block learning_block1>
/ onblockbegin = [
values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]

/ errormessage = false
/ preinstructions = (learninstructions)
</block>

thank you! it's kind of working now, but with a bug i can't explain. when the task moves from the first block to the second, it skips the first trial in the list for the second block ('trial.new_room'), but does not skip this trial for the third or fourth block. i played around with it a bit (e.g., tested starting with learning_block2, had the second block set to any of the other three learning lists) and discovered that no matter which trial list is called up, the second block in the experiment will skip the "trial.new_room" in that list.

code below - thank you for your help! 


<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

// trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>

Could you please provide code that can actually be run instead of something that is missing dozens of the things it references?

it's a long script that can't be run without images, thought i was highlighting the critical parts, but if the below is what you want, then thanks. 
*************************************************
Creating an Experiment
*************************************************

<expt>
/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

/ preinstructions = (expinstructions1a,expinstructions1b, expinstructions2, expinstructions3, expinstructions4, expinstructions5, expinstructions6, expinstructions7, expinstructions8, expinstructions9, expinstructions10, expinstructions11, expinstructions12, expinstructions13)
/ blocks = [1=check; 2=practice; 3=learning_block1; 4=learning_block2; 5=learning_block3; 6=learning_block4; 7=memoryPrac; 8=memory_block1; 9=memory_block2; 10=memory_block3]

*************************************************
INITIALIZE
*************************************************

<values>
/ blockList = 0
/ natSample = 0
/ artSample = 0
/ outSample = 0
</values>

*************************************************
***// change by condition //***
*************************************************

/ scene order
/1 = "scenes_beach.jpg"
/2 = "scenes_city.jpg"
/3 = "scenes_forest.jpg"
/4 = "scenes_village.jpg"
<list sceneList>
/ items = (2,4,1,3)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ trial list order
<list trialList_list>
/ items = (list.trialList_4060A.nextvalue,list.trialList_2080A.nextvalue,list.trialList_2080B.nextvalue,list.trialList_4060B.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ natural or artificial winner order: NAAN
<list nat_rewList>
/ items = (list.valStims_lr_4060_high.nextvalue,list.valStims_hr_2080_low.nextvalue,list.valStims_lr_2080_low.nextvalue,list.valStims_hr_4060_high.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list art_rewList>
/ items = (list.valStims_lr_4060_low.nextvalue,list.valStims_hr_2080_high.nextvalue,list.valStims_lr_2080_high.nextvalue,list.valStims_hr_4060_low.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ image order
<list art_cueList>
/ items = (list.learnStims_art_A_x.nextvalue,list.learnStims_art_B_x.nextvalue,list.learnStims_art_C_x.nextvalue,list.learnStims_art_D_x.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list art_outList>
/ items = (list.learnStims_art_A_y.nextvalue,list.learnStims_art_B_y.nextvalue,list.learnStims_art_C_y.nextvalue,list.learnStims_art_D_y.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list nat_cueList>
/ items = (list.learnStims_nat_A_x.nextvalue,list.learnStims_nat_B_x.nextvalue,list.learnStims_nat_C_x.nextvalue,list.learnStims_nat_D_x.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list nat_outList>
/ items = (list.learnStims_nat_A_y.nextvalue,list.learnStims_nat_B_y.nextvalue,list.learnStims_nat_C_y.nextvalue,list.learnStims_nat_D_y.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

/ jitter list order
<list jitter_estimateList>
/ items = (list.jitter_estimateA.nextvalue,list.jitter_estimateB.nextvalue,list.jitter_estimateC.nextvalue,list.jitter_estimateD.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>

<list jitter_itiList>
/ items = (list.jitter_itiA.nextvalue,list.jitter_itiB.nextvalue,list.jitter_itiC.nextvalue,list.jitter_itiD.nextvalue)
/ poolsize = 4
/ selectionmode = values.blockList
</list>


*************************************************
CHECK
*************************************************

<survey check>
/ pages = [1=questions]
/ responsefontstyle = ("Arial", 13)s
/ itemfontstyle = ("Arial", 18)
/ txcolor = white
/ screencolor = darkgrey
/ itemspacing = 5%
/ showpagenumbers = false
</survey>

<surveypage questions>
/ caption = "Before starting the experiment, please answer the following questions and click submit. Once you've answered all questions correctly, the task will automatically load. If you do not answer correctly, you will see the instructions again."
/ fontstyle = ("Arial", 20)
/ txcolor = white
/ showquestionnumbers = false
/ questions = [1=question1; 2=question2; 3=question3; 4=question4]
/ branch = [
    if (radiobuttons.question1.response=="a) one type of item (either artificial or natural) is more valuable on average in each location"&&radiobuttons.question2.response=="b) the value of each pair determines the amount you are winning"&&radiobuttons.question3.response=="a) the average value of artificial or natural items within that location"&&radiobuttons.question4.response=="e) a+b+c") surveypage.success else surveypage.fail
]
</surveypage>

<radiobuttons question1>
/ caption = "Which statement is true about artificial versus natural items?"
/ options = ("a) one type of item (either artificial or natural) is more valuable on average in each location", "b) objects can take on any value, and whether they are artificial or natural does not matter", "c) items within a pair can belong to different category types")
</radiobuttons>

<radiobuttons question2>
/ caption = "Which statement is true about the resale value of each pair?"
/ options = ("a) the value of each pair doesn't affect your winnings","b) the value of each pair determines the amount you are winning","c) the value of each pair can change without warning")
</radiobuttons>

<radiobuttons question3>
/ caption = "What determines the resale value of each pair?"
/ options = ("a) the average value of artificial or natural items within that location", "b) the quality of the photos in the pair", "c) the quality and outside value of the items in the pair")
</radiobuttons>

<radiobuttons question4>
/ caption = "What should you pay attention to?"
/ options = ("a) the two items within a pair", "b) the reward value of each pair", "c) the location you found the items in", "d) a+b", "e) a+b+c")
</radiobuttons>

<surveypage success>
/ caption = "~n~n~n~nCongrats! You answered every question correctly. You will next get to practice the task.~n~nNote that to get used to the task, on the first 4 turns you will have 6 seconds rather than 3 seconds to estimate average values.~n~nAfter that, you will have 3 seconds to answer, the same as the normal task. Please continue to the practice task."
/ fontstyle = ("Arial", 20)
/ txcolor = white
/ showbackbutton = false
</surveypage>

<surveypage fail>
/ caption = "You did not answer every question correctly. Please re-read the instructions below and try again by clicking the back button.
In this experiment, you will be travel to four different locations where you will pick up artificial objects (man-made items such as bowls or sports equipment) and natural items (such as plants or food items) to sell.
Within each location, one of the two categories, 'artificial' or 'natural' items, will be worth more money overall making it the winner.
To learn about the values of artificial and natural items in each location, on each turn, you will find and sell either two artificial or two natural items.
Pairs of items have a value between 0 and 100 cents. You will get a commission of 10% of the value of each pair, paid to you at the end of the experiment.
Note that the value of the pair of items is not determined by the specific items but by the value of that category (i.e., ‘artificial’ or ‘natural’ ) in the location you are in.
For each pair of items you find, you will first see one of the items and estimate how much you think on average items from that category (artificial or natural) are worth in that location, from 0 to 100 cents. You will have 3 seconds to enter your estimate.
At first, you will not know the answer, but please make your best guess of what the average value of that category is in your location. To submit your answer, enter your guess in the answer box. Afterwards, the true value of the pair will appear along with the second item belonging to the pair.
Remember: Although different pairs of items have different values, their worth is solely determined by the general value of their category in the location you are in. The average value of each type of item category (artificial or natural) will not change within a location, but may change when you arrive at a new location.
In addition, specific values of pairs will vary around the mean value, and each location has different amounts of variability in their category values. For example, in one location, let's say pairs of natural items can be sold for 50 cents on average, which, in practice, may mean that you would find one pair that is worth 60 cents and another worth 40 cents, and yet a third will be worth 50 cents. In another location, where there is greater resale variability, an average value of 50 cents could look like pairs of items that are worth 30 cents and 70 cents.
These levels of resale variability stay the same in one location, but may change from one location to another.
Pay attention to the resale value of each pair, so you can better guess the average value of artificial and natural items within each location.
Importantly, after touring all locations, you will be asked to indicate which item category was more valuable in each location (which category was the 'winner' in each location). To help answer correctly, pay attention to where each item is found as well as their resale values.
"
/ fontstyle = ("Arial", 11)
/ txcolor = white
/ nextbuttonposition = (-10%, -10%)
</surveypage>

*************************************************
PRACTICE
*************************************************

<block practice>
/ trials = [1=practiceR; 2-13=pause_practice]
/ errormessage = false
</block>

/ new room
<trial practiceR>
/ stimulustimes = [0=blank, scenePractice, newRoomText, welcomePractice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// practice trials
<trial pause_practice>
/ stimulustimes = [0=blank,scenePractice,fixation]
/ trialduration = list.jitterPrac_iti.nextvalue
/ validresponse = (noresponse)
/ branch = [
    if (list.practice.nextvalue==1){
        trial.practice_nat;
    }else{
        trial.practice_art;
    }    
]
</trial>

<openended estimate_practice>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=scenePractice, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitterPrac_estimate.nextvalue
/ trialduration = list.jitterPrac_baseline.nextvalue + list.jitterPrac_estimate.currentvalue
/ branch = [
    if (list.practice.currentvalue==1){
        trial.outcome_practice_nat;
    }else{
        trial.outcome_practice_art;
    };    
]
</openended>

/ practice natural items
<trial practice_nat>
/ stimulustimes = [0=blank,practStim_nat]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_practice
]
</trial>

<trial outcome_practice_nat>
/ stimulustimes = [0=blank,practStim_nat, val_practice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

/ practice artificial items
<trial practice_art>
/ stimulustimes = [0=blank,practStim_art]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_practice
]
</trial>

<trial outcome_practice_art>
/ stimulustimes = [0=blank,practStim_art, val_practice]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

<list practice>
/ items = (1,2,1,2,2,1,1,2,1,1,2,2)
/ selectionmode = sequence
</list>

<list pracStims_art>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12)
/ poolsize = 12
/ selectionmode = random
/ selectionrate = always
</list>

<list pracStims_nat>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12)
/ poolsize = 12
/ selectionmode = random
/ selectionrate = always
</list>

<list jitterPrac_iti>
/ items = (1000,3000,5000,1000,3000,5000,1000,3000,5000,1000,3000,5000)
/ selectionmode = random
/ selectionrate = always
</list>

<list jitterPrac_baseline>
/ items = (6000,6000,6000,6000,3000,3000,3000,3000,3000,3000,3000,3000)
/ selectionmode = sequence
</list>

<list jitterPrac_estimate>
/ items = (0,2000,0,2000,0,2000,0,2000,0,2000,0,2000)
/ selectionmode = random
/ selectionrate = always
</list>


*************************************************
LEARNING LISTS
*************************************************

// learning: trial selection order
<list trialList_4060A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_4060B>
/ items = (trial.new_room,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080A>
/ items = (trial.new_room,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_art,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

<list trialList_2080B>
/ items = (trial.new_room,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.cue_nat,trial.cue_art,trial.cue_art,trial.cue_nat,trial.cue_art,trial.cue_nat,trial.choiceT,trial.learningBreak)
/ poolsize = 33
/ selectionmode = sequence
</list>

// learning: randomize images within group and block

/ artificial stim
<list learnStims_art_A_x>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_A_y>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_B_x>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_B_y>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_C_x>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_C_y>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_D_x>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_art_D_y>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionrate = always
</list>

<list newStims_art>
/ items = (121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180)
/ poolsize = 60
/ selectionrate = always
</list>

/ natural stims
<list learnStims_nat_A_x>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_A_y>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_B_x>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_B_y>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_C_x>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_C_y>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_D_x>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionrate = always
</list>

<list learnStims_nat_D_y>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionrate = always
</list>

<list newStims_nat>
/ items = (121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180)
/ poolsize = 60
/ selectionrate = always
</list>

// learning: outcome lists

/ lr_4060
<list valStims_lr_4060_high>
/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_lr_4060_low>
/ items = (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ lr_2080
<list valStims_lr_2080_high>
/ items = (31,32,33,34,35,36,37,38,39,40,41,42,43,44,45)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_lr_2080_low>
/ items = (46,47,48,49,50,51,52,53,54,55,56,57,58,59,60)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ hr 4060
<list valStims_hr_4060_high>
/ items = (61,62,63,64,65,66,67,68,69,70,71,72,73,74,75)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_hr_4060_low>
/ items = (76,77,78,79,80,81,82,83,84,85,86,87,88,89,90)
/ poolsize = 15
/ selectionmode = sequence
</list>

/ hr 2080
<list valStims_hr_2080_high>
/ items = (91,92,93,94,95,96,97,98,99,100,101,102,103,104,105)
/ poolsize = 15
/ selectionmode = sequence
</list>

<list valStims_hr_2080_low>
/ items = (106,107,108,109,110,111,112,113,114,115,116,117,118,119,120)
/ poolsize = 15
/ selectionmode = sequence
</list>

// jitter lists

/ jitter_estimate
<list jitter_estimateA>
/ items = (2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateB>
/ items = (2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000,0,2000,0,2000,0,2000,2000,0,0,2000,0,2000,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateC>
/ items = (2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,0,2000,2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,2000,0,0,2000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_estimateD>
/ items = (0,2000,2000,0,2000,0,2000,0,2000,0,0,2000,0,2000,2000,0,0,2000,2000,0,0,2000,2000,0,0,2000,0,2000,2000,0)
/ poolsize = 30
/ selectionmode = sequence
</list>

/ jitter_iti
<list jitter_itiA>
/ items = (1000,3000,5000,1000,5000,3000,3000,1000,5000,5000,1000,3000,1000,5000,3000,3000,1000,5000,3000,5000,1000,3000,1000,5000,1000,3000,5000,3000,1000,5000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiB>
/ items = (1000,5000,3000,5000,1000,3000,1000,5000,3000,3000,5000,1000,5000,1000,3000,1000,5000,3000,5000,1000,3000,1000,3000,5000,3000,1000,5000,1000,5000,3000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiC>
/ items = (3000,5000,1000,5000,1000,3000,5000,3000,1000,1000,3000,5000,1000,5000,3000,5000,1000,3000,1000,5000,3000,3000,1000,5000,5000,1000,3000,1000,3000,5000)
/ poolsize = 30
/ selectionmode = sequence
</list>

<list jitter_itiD>
/ items = (3000,5000,1000,3000,1000,5000,1000,3000,5000,3000,5000,1000,1000,5000,3000,1000,3000,5000,1000,5000,3000,3000,1000,5000,3000,5000,1000,5000,1000,3000)
/ poolsize = 30
/ selectionmode = sequence
</list>


*************************************************
LEARNING
*************************************************

// BLOCKS
<block learning_block1>
/ onblockbegin = [
    values.blockList = 1;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
/ preinstructions = (learninstructions)
</block>

<block learning_block2>
/ onblockbegin = [
    values.blockList = 2;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block3>
/ onblockbegin = [
    values.blockList = 3;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

<block learning_block4>
/ onblockbegin = [
    values.blockList = 4;
]
/ trials = [1-33 = list.trialList_list]
/ errormessage = false
</block>

// TRIALS
/ new room
<trial new_room>
/ stimulustimes = [0=blank, sceneStim_new, newRoomText, welcomeScene]
/ trialduration = 3000
/ validresponse = (noresponse)
</trial>

// natural pairs
<trial cue_nat>
/ ontrialbegin = [
    values.natSample = list.nat_cueList.nextvalue;
]
/ stimulustimes = [0=blank, natP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_nat
]
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_nat
]
</openended>

<trial outcome_nat>
/ ontrialbegin = [
    values.natSample = list.nat_outList.nextvalue;
    values.outSample = list.nat_rewList.nextvalue;
]
/ stimulustimes = [0=blank, natP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// artificial pairs
<trial cue_art>
/ stimulustimes = [0=blank, artP]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
openended.estimate_art
]
</trial>

<openended estimate_art>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",15)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=sceneStim_current, estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",30)
/ posttrialpause = list.jitter_estimateList.nextvalue
/ trialduration = 3000 + list.jitter_estimateList.currentvalue
/ branch = [
trial.outcome_art
]
</openended>

<trial outcome_art>
/ ontrialbegin = [
    values.artSample = list.art_outList.nextvalue;
    values.outSample = list.art_rewList.nextvalue;
]
/ stimulustimes = [0=blank, artP, outcomes]
/ trialduration = 3000
/ validresponse = (noresponse)
/ branch = [
trial.learning_iti
]
</trial>

// fixation
<trial learning_iti>
/ stimulustimes = [0=blank, sceneStim_current, fixation]
/ validresponse = (noresponse)
/ trialduration = list.jitter_itiList.nextvalue
</trial>

list.jitter_itiList.nextvalue

// choice trial
<trial choiceT>
/ stimulustimes = [0=blank, oneC, twoC, artificialStim, naturalStim, choiceMemQ]
/ validresponse = ("1","2")
/ beginresponsetime = 0
</trial>

// trial break
<trial learningBreak>
/ stimulustimes = [0=blank, learnBreakStatus, learnBreakText]
/ beginresponsetime = 0
/ validresponse = (57)
</trial>

*************************************************
Creating Instructions
*************************************************
// initial learning
<htmlpage expinstructions1a>
/ file = "instruct-1a.html"
</htmlpage>

<htmlpage expinstructions1b>
/ file = "instruct-1b.html"
</htmlpage>

<htmlpage expinstructions2>
/ file = "instruct-2.html"
</htmlpage>

<htmlpage expinstructions3>
/ file = "instruct-3.html"
</htmlpage>

<htmlpage expinstructions4>
/ file = "instruct-4.html"
</htmlpage>

<htmlpage expinstructions5>
/ file = "instruct-5.html"
</htmlpage>

<htmlpage expinstructions6>
/ file = "instruct-6.html"
</htmlpage>

<htmlpage expinstructions7>
/ file = "instruct-7.html"
</htmlpage>

<htmlpage expinstructions8>
/ file = "instruct-8.html"
</htmlpage>

<htmlpage expinstructions9>
/ file = "instruct-9.html"
</htmlpage>

<htmlpage expinstructions10>
/ file = "instruct-10.html"
</htmlpage>

<htmlpage expinstructions11>
/ file = "instruct-11.html"
</htmlpage>

<htmlpage expinstructions12>
/ file = "instruct-12.html"
</htmlpage>

<htmlpage expinstructions13>
/ file = "instruct-13.html"
</htmlpage>

// learning
<htmlpage learninstructions>
/ file = "instruct-ready-learning.html"
</htmlpage>

// memory
<htmlpage meminstructions1>
/ file = "instruct-item1.html"
</htmlpage>

<htmlpage meminstructions2>
/ file = "instruct-item2.html"
</htmlpage>

<htmlpage meminstructions3>
/ file = "instruct-ready-memory.html"
</htmlpage>

// choice
<htmlpage choiceinstructions>
/ file = "instruct-choice.html"
</htmlpage>

*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = (175, 175, 175)
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>

*************************************************
Stimuli Presentation
*************************************************

<text fixation>
/ items = (" finding new items...")
/ txbgcolor = white
/ txcolor = darkgray
/ position = (50%, 50%)
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ erase = false
/ vjustify = center
</text>

<text cross>
/ items = ("+")
/ txbgcolor = transparent
/ txcolor = white
/ position = (50%, 50%)
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ erase = false
/ vjustify = center
</text>

// PRACTICE
/ scene
<picture scenePractice>
/ items = ("scenes_practice.jpg")
/ size = (100%, 100%)
/ erase = false
</picture>

<text welcomePractice>
/ items = ("Welcome to the mountains!")
/ vjustify = center
/ size = (500,150)
/ fontstyle = ("Helvetica", 5%, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

/ practice stims
<picture practStim_nat>
/ items = prac_natStims
/ size = (30%, 30%)
/ select = list.pracStims_nat.nextvalue
/ erase = false
</picture>

<picture practStim_art>
/ items = prac_artStims
/ size = (30%, 30%)
/ select = list.pracStims_art.nextvalue
/ erase = false
</picture>

/ rewards
<text val_practice>
/ items = valuesP
/ select = sequence
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ vjustify = center
/ hjustify = center
/ vposition = 25
/ hposition = 50
/ txcolor = chartreuse
/ erase = false
/ size = (13%,13%)
</text>

// LEARNING
/ scene
<picture sceneStim_new>
/ items = sceneStims
/ size = (100%, 100%)
/ select = list.sceneList
/ erase = false
</picture>

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text welcomeScene>
/ items = sceneWelcome
/ select = list.sceneList
/ vjustify = center
/ size = (500,150)
/ fontstyle = ("Helvetica", 5%, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<picture sceneStim_current>
/ items = sceneStims
/ size = (100%, 100%)
/ select = list.sceneList
/ erase = false
</picture>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

/ rewards
<text outcomes>
/ items = outcomeStims
/ select = values.outSample
/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 1)
/ vjustify = center
/ hjustify = center
/ vposition = 25
/ hposition = 50
/ txcolor = chartreuse
/ erase = false
/ size = (13%,13%)
</text>

/ stims
<picture natP>
/ items = natStims
/ size = (30%, 30%)
/ select = values.natSample
/ erase = false
</picture>

<picture artP>
/ items = artStims
/ size = (30%, 30%)
/ select = values.artSample
/ erase = false
</picture>

/ break stims
<text learnBreakStatus>
/ items = learnStatus
/ select = sequence
/ vjustify = center
/ size = (1000,200)
/ fontstyle = ("Helvetica", 20, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txcolor = white
/ txbgcolor = transparent
</text>

<text learnBreakText>
/ items = ("You can take a break now. When you are ready to continue, please press the spacebar.")
/ vjustify = center
/ size = (1000,200)
/ fontstyle = ("Helvetica", 20, true, false, false, false, 5, 0)
/ vposition = (50)
/ hposition = (50)
/ txcolor = white
/ txbgcolor = transparent
</text>

// CHOICE
<text choiceMemQ>
/ items = ("press 1 or 2 to indicate which category was more rewarding in this location")
/ vjustify = center
/ size = (600,100)
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vposition = (20)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

<picture artificialStim>
/ items = ("artificial.png")
/ size = (30%, 30%)
/ vposition = 50
/ hposition = 35
</picture>

<picture naturalStim>
/ items = ("natural.png")
/ size = (30%, 30%)
/ vposition = 50
/ hposition = 65
</picture>

<text oneC>
/ items = ("1")
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vjustify = center
/ hjustify = center
/ vposition = 32
/ hposition = 35
/ txcolor = darkgray
/ erase = false
/ size = (4%,4%)
</text>

<text twoC>
/ items = ("2")
/ fontstyle = ("Helvetica", 3%, true, false, false, false, 5, 0)
/ vjustify = center
/ hjustify = center
/ vposition = 32
/ hposition = 65
/ txcolor = darkgray
/ erase = false
/ size = (4%,4%)
</text>

*************************************************
Item Lists
*************************************************

// prac image item lists
<item prac_artStims>
/1 = "prac_brooch.jpg"
/2 = "prac_chisel02b.jpg"
/3 = "prac_clotheshanger.jpg"
/4 = "prac_jack.jpg"
/5 = "prac_key01.jpg"
/6 = "prac_makeupbrush02a.jpg"
/7 = "prac_microwave.jpg"
/8 = "prac_nailpolish02a.jpg"
/9 = "prac_morningstar.jpg"
/10 = "prac_ring02.jpg"
/11 = "prac_snaredrum.jpg"
/12 = "prac_woodenshoe.jpg"
</item>

<item prac_natStims>
/1 = "prac_barnacles.jpg"
/2 = "prac_bonsai.jpg"
/3 = "prac_crab-claw.jpg"
/4 = "prac_dandilion-seeds.jpg"
/5 = "prac_durian.jpg"
/6 = "prac_honey.jpg"
/7 = "prac_ice.jpg"
/8 = "prac_nautilus.jpg"
/9 = "prac_papaya.jpg"
/10 = "prac_redtulips.jpg"
/11 = "prac_rice.jpg"
/12 = "prac_rose.jpg"
</item>

<item prac_mem>
/1 = "prac_dreamcatcher_memExample.jpg"
/2 = "prac_ice.jpg"
/3 = "prac_fire_hydrant_memExample.jpg"
/4 = "prac_durian.jpg"
</item>

<item valuesP>
/1 = "34¢"
/2 = "68¢"
/3 = "25¢"
/4 = "77¢"
/5 = "58¢"
/6 = "31¢"
/7 = "17¢"
/8 = "60¢"
/9 = "44¢"
/10 = "29¢"
/11 = "85¢"
/12 = "72¢"
</item>

// context scenes
<item sceneStims>
/1 = "scenes_beach.jpg"
/2 = "scenes_city.jpg"
/3 = "scenes_forest.jpg"
/4 = "scenes_village.jpg"
</item>

<item sceneWelcome>
/1 = "Welcome to the beach!"
/2 = "Welcome to the city!"
/3 = "Welcome to the forest!"
/4 = "Welcome to the village!"
</item>

<item learnStatus>
/1 = "Good start, you have visited one location,~n and have three left!"
/2 = "You are now half-way through! ~nYou have visited two locations, and have two left."
/3 = "You have visited three locations, ~nand only have one left!"
/4 = "You have visited all locations, ~nyou will now continue to the next phase of the study!"
</item>

<item memStatus>
/1 = "You have completed one section,~n and have two left!"
/2 = "You only have one section left!"
</item>

/ valStims_lr_4060_high (1-15)
/ valStims_lr_4060_low (16-30)
/ valStims_lr_2080_high (31-45)
/ valStims_lr_2080_low (46-60)
/ valStims_hr_4060_high (61-75)
/ valStims_hr_4060_low (76-90)
/ valStims_hr_2080_high (91-105)
/ valStims_hr_2080_low (106-120)

<item outcomeStims>
/1 = "52¢"
/2 = "63¢"
/3 = "69¢"
/4 = "61¢"
/5 = "55¢"
/6 = "50¢"
/7 = "62¢"
/8 = "70¢"
/9 = "65¢"
/10 = "53¢"
/11 = "59¢"
/12 = "68¢"
/13 = "51¢"
/14 = "64¢"
/15 = "58¢"
/16 = "43¢"
/17 = "32¢"
/18 = "50¢"
/19 = "41¢"
/20 = "34¢"
/21 = "49¢"
/22 = "33¢"
/23 = "45¢"
/24 = "35¢"
/25 = "38¢"
/26 = "36¢"
/27 = "48¢"
/28 = "30¢"
/29 = "46¢"
/30 = "40¢"
/31 = "70¢"
/32 = "79¢"
/33 = "86¢"
/34 = "75¢"
/35 = "90¢"
/36 = "81¢"
/37 = "72¢"
/38 = "76¢"
/39 = "88¢"
/40 = "83¢"
/41 = "73¢"
/42 = "84¢"
/43 = "80¢"
/44 = "89¢"
/45 = "74¢"
/46 = "25¢"
/47 = "11¢"
/48 = "30¢"
/49 = "18¢"
/50 = "16¢"
/51 = "26¢"
/52 = "12¢"
/53 = "15¢"
/54 = "28¢"
/55 = "19¢"
/56 = "29¢"
/57 = "14¢"
/58 = "20¢"
/59 = "13¢"
/60 = "24¢"
/61 = "60¢"
/62 = "41¢"
/63 = "78¢"
/64 = "49¢"
/65 = "72¢"
/66 = "48¢"
/67 = "59¢"
/68 = "42¢"
/69 = "80¢"
/70 = "71¢"
/71 = "50¢"
/72 = "61¢"
/73 = "76¢"
/74 = "43¢"
/75 = "70¢"
/76 = "59¢"
/77 = "32¢"
/78 = "40¢"
/79 = "22¢"
/80 = "47¢"
/81 = "56¢"
/82 = "41¢"
/83 = "21¢"
/84 = "33¢"
/85 = "49¢"
/86 = "23¢"
/87 = "42¢"
/88 = "57¢"
/89 = "48¢"
/90 = "30¢"
/91 = "68¢"
/92 = "81¢"
/93 = "92¢"
/94 = "62¢"
/95 = "97¢"
/96 = "77¢"
/97 = "61¢"
/98 = "99¢"
/99 = "70¢"
/100 = "93¢"
/101 = "60¢"
/102 = "100¢"
/103 = "71¢"
/104 = "87¢"
/105 = "82¢"
/106 = "10¢"
/107 = "32¢"
/108 = "18¢"
/109 = "38¢"
/110 = "2¢"
/111 = "11¢"
/112 = "28¢"
/113 = "19¢"
/114 = "3¢"
/115 = "40¢"
/116 = "0¢"
/117 = "20¢"
/118 = "9¢"
/119 = "37¢"
/120 = "33¢"
</item>


*************************************************
***// change by condition //***
*************************************************

// stim set 1
<item natStims>
/1 = "flower_buttercup.jpg"
/2 = "food_grapes_red.jpg"
/3 = "food_romaine.jpg"
/4 = "food_cabbage_green.jpg"
/5 = "nature_dirt.jpg"
/6 = "leaf_green.jpg"
/7 = "food_pepper_corns.jpg"
/8 = "flower_lillies.jpg"
/9 = "nature_star-anise.jpg"
/10 = "food_grass.jpg"
/11 = "plant_full.jpg"
/12 = "food_broccoli01b.jpg"
/13 = "leaf_pine.jpg"
/14 = "food_apple_green.jpg"
/15 = "food_hotpepper_red.jpg"
/16 = "food_potatoes.jpg"
/17 = "plant_lily.jpg"
/18 = "plant_air-plant.jpg"
/19 = "food_onions_yellow.jpg"
/20 = "food_oyster.jpg"
/21 = "rock_pinkcrystal.jpg"
/22 = "food_cranberries.jpg"
/23 = "food_dates.jpg"
/24 = "ocean_seashell01.jpg"
/25 = "food_walnuts.jpg"
/26 = "food_snappeas.jpg"
/27 = "nature_acorn.jpg"
/28 = "food_cherries_white.jpg"
/29 = "flower_hydrangea.jpg"
/30 = "food_sprouts_alpha.jpg"
/31 = "nature_wood.jpg"
/32 = "food_fig.jpg"
/33 = "rock_stone.jpg"
/34 = "flower_cherry_blossom.jpg"
/35 = "ocean_clam-shell.jpg"
/36 = "food_eggs.jpg"
/37 = "food_cucumber.jpg"
/38 = "nature_bark.jpg"
/39 = "food_butternut_squash.jpg"
/40 = "food_peach.jpg"
/41 = "food_endive.jpg"
/42 = "leaf_four.jpg"
/43 = "food_eggplant.jpg"
/44 = "plant_hosta.jpg"
/45 = "food_guava.jpg"
/46 = "plant_aloe.jpg"
/47 = "food_bokchoy.jpg"
/48 = "food_cilantro.jpg"
/49 = "leaf_oak-leaf.jpg"
/50 = "food_lemon.jpg"
/51 = "food_blackolive.jpg"
/52 = "food_blueberry02.jpg"
/53 = "food_grapefruit.jpg"
/54 = "food_pecans.jpg"
/55 = "rock_quartz.jpg"
/56 = "food_daikon.jpg"
/57 = "nature_chestnut.jpg"
/58 = "leaf_fan.jpg"
/59 = "flower_dandelion.jpg"
/60 = "food_peas.jpg"
/61 = "food_artichoke01b.jpg"
/62 = "food_pistachio.jpg"
/63 = "food_green_pepper.jpg"
/64 = "leaf_holly.jpg"
/65 = "plant_bamboo.jpg"
/66 = "flower_red.jpg"
/67 = "food_cabbage_purple.jpg"
/68 = "food_apple_red.jpg"
/69 = "food_grapes.jpg"
/70 = "food_lettuce_purple.jpg"
/71 = "rock_stone2.jpg"
/72 = "nature_branches.jpg"
/73 = "food_scallions.jpg"
/74 = "nature_feather.jpg"
/75 = "food_cherry.jpg"
/76 = "ocean_shell.jpg"
/77 = "food_avocado.jpg"
/78 = "food_banana03.jpg"
/79 = "rock_crystal_2.jpg"
/80 = "leaf_red.jpg"
/81 = "food_asperagus.jpg"
/82 = "nature_pinecone.jpg"
/83 = "food_sweet_potato.jpg"
/84 = "food_beans.jpg"
/85 = "flower_iris.jpg"
/86 = "rock_amethyst.jpg"
/87 = "food_sprouts.jpg"
/88 = "plant_clay.jpg"
/89 = "food_gourd.jpg"
/90 = "food_mushrooms.jpg"
/91 = "flower_red_tulip.jpg"
/92 = "ocean_sand-dollar.jpg"
/93 = "food_ginger.jpg"
/94 = "leaf_fern.jpg"
/95 = "rock_crystal.jpg"
/96 = "plant_hyacinth.jpg"
/97 = "food_carrot02.jpg"
/98 = "food_garlic01a.jpg"
/99 = "food_blackberry.jpg"
/100 = "food_kiwi03.jpg"
/101 = "food_brusselssprout.jpg"
/102 = "food_beet.jpg"
/103 = "nature_coral.jpg"
/104 = "food_honeycomb.jpg"
/105 = "flower_camelia.jpg"
/106 = "rock_mineral.jpg"
/107 = "food_peanut01.jpg"
/108 = "food_celery.jpg"
/109 = "leaf_red_single.jpg"
/110 = "food_coconut.jpg"
/111 = "plant_claybulb.jpg"
/112 = "food_okra.jpg"
/113 = "nature_cactus.jpg"
/114 = "food_leechee.jpg"
/115 = "food_chickpeas.jpg"
/116 = "plant_leaf.jpg"
/117 = "food_corn.jpg"
/118 = "food_oats.jpg"
/119 = "flower_lavendar.jpg"
/120 = "food_cinnamon.jpg"
/121 = "flower_rose.jpg"
/122 = "flower_lotus.jpg"
/123 = "flower_orange.jpg"
/124 = "flower_orchid.jpg"
/125 = "flower_stargazerlilly.jpg"
/126 = "flower_sun.jpg"
/127 = "food_almond.jpg"
/128 = "food_hotpepper_green.jpg"
/129 = "food_crushed_red_peppers.jpg"
/130 = "food_mushroom.jpg"
/131 = "food_onion_red.jpg"
/132 = "food_pepper_red.jpg"
/133 = "food_green_beans.jpg"
/134 = "food_squash.jpg"
/135 = "food_canteloupe.jpg"
/136 = "food_orange.jpg"
/137 = "food_lime.jpg"
/138 = "food_mango.jpg"
/139 = "food_coffeebean.jpg"
/140 = "food_cauliflower02.jpg"
/141 = "food_fennel.jpg"
/142 = "food_leek.jpg"
/143 = "food_zucchini.jpg"
/144 = "food_parsely.jpg"
/145 = "food_spinach.jpg"
/146 = "food_cashews.jpg"
/147 = "food_pear.jpg"
/148 = "food_pineapple.jpg"
/149 = "food_plum.jpg"
/150 = "food_pomegranate.jpg"
/151 = "food_pumpkin.jpg"
/152 = "food_radishes.jpg"
/153 = "food_raspberry02.jpg"
/154 = "food_rhubarb.jpg"
/155 = "food_star_fruit.jpg"
/156 = "food_strawberry.jpg"
/157 = "food_sunflower-seeds.jpg"
/158 = "food_tomato.jpg"
/159 = "food_watermelon.jpg"
/160 = "leaf_oranges.jpg"
/161 = "leaf_clover.jpg"
/162 = "leaf_sprig.jpg"
/163 = "leaf_yellow.jpg"
/164 = "nature_gumball.jpg"
/165 = "nature_hay.jpg"
/166 = "nature_moss.jpg"
/167 = "nature_nest.jpg"
/168 = "nature_tumbleweed.jpg"
/169 = "nature_wheat.jpg"
/170 = "ocean_shell_wide.jpg"
/171 = "ocean_starfish.jpg"
/172 = "plant_money.jpg"
/173 = "plant_polkadot.jpg"
/174 = "plant_sawtooth_cactus.jpg"
/175 = "plant_spider.jpg"
/176 = "plant_sprout.jpg"
/177 = "plant_succulent.jpg"
/178 = "rock_stone3.jpg"
/179 = "rock_obsideon.jpg"
/180 = "rock_several.jpg"
</item>

<item artStims>
/1 = "redbow.jpg"
/2 = "pencil_sharpener.jpg"
/3 = "alarmclock02b.jpg"
/4 = "mirror.jpg"
/5 = "toothbrush.jpg"
/6 = "candle.jpg"
/7 = "fan.jpg"
/8 = "change_purse.jpg"
/9 = "candelabra.jpg"
/10 = "airpump.jpg"
/11 = "spoon.jpg"
/12 = "stool01.jpg"
/13 = "blender.jpg"
/14 = "battery03a.jpg"
/15 = "coffee_maker.jpg"
/16 = "wagon.jpg"
/17 = "mug05.jpg"
/18 = "dirtspade.jpg"
/19 = "briefcase.jpg"
/20 = "electricrazor.jpg"
/21 = "bike_helmet.jpg"
/22 = "drinkshaker.jpg"
/23 = "video_camera.jpg"
/24 = "binocularcase01a.jpg"
/25 = "stethescope.jpg"
/26 = "packofgum.jpg"
/27 = "vase.jpg"
/28 = "belt01b.jpg"
/29 = "bowtie.jpg"
/30 = "skigloves.jpg"
/31 = "bib.jpg"
/32 = "piggybank.jpg"
/33 = "cheeseknife01.jpg"
/34 = "mortar_and_pestle.jpg"
/35 = "boxcutter04b.jpg"
/36 = "beerbottle.jpg"
/37 = "surfboard.jpg"
/38 = "blow_drier.jpg"
/39 = "soap.jpg"
/40 = "toaster.jpg"
/41 = "bracelet02a.jpg"
/42 = "sunglasses02a.jpg"
/43 = "baseball.jpg"
/44 = "basket.jpg"
/45 = "saltshaker01.jpg"
/46 = "wateringcan.jpg"
/47 = "bowl02b.jpg"
/48 = "stapler.jpg"
/49 = "towelrack.jpg"
/50 = "birdfeeder.jpg"
/51 = "badmintonracket.jpg"
/52 = "umbrella04.jpg"
/53 = "bell.jpg"
/54 = "smokingpipe.jpg"
/55 = "rubberglove02b.jpg"
/56 = "binoculars01b.jpg"
/57 = "barrel01.jpg"
/58 = "rolling_pin.jpg"
/59 = "paddleball.jpg"
/60 = "compactpowder.jpg"
/61 = "cigar.jpg"
/62 = "pliers.jpg"
/63 = "comb01a.jpg"
/64 = "studiolight.jpg"
/65 = "towels.jpg"
/66 = "christmaslights.jpg"
/67 = "peppermill02b.jpg"
/68 = "wallet.jpg"
/69 = "pencilcase02b.jpg"
/70 = "spraybottle01.jpg"
/71 = "cymbal.jpg"
/72 = "bowlingball.jpg"
/73 = "threeholepunch03.jpg"
/74 = "skippingrope.jpg"
/75 = "airplane.jpg"
/76 = "basketball.jpg"
/77 = "dice01b.jpg"
/78 = "dart.jpg"
/79 = "slingshot.jpg"
/80 = "skateboard.jpg"
/81 = "collander.jpg"
/82 = "phone.jpg"
/83 = "doorhandle.jpg"
/84 = "calculator.jpg"
/85 = "clock.jpg"
/86 = "pictureframe.jpg"
/87 = "downhillski.jpg"
/88 = "battleship.jpg"
/89 = "tissues.jpg"
/90 = "slinky.jpg"
/91 = "babybottle.jpg"
/92 = "tie02.jpg"
/93 = "chords.jpg"
/94 = "soccer_ball.jpg"
/95 = "8ball.jpg"
/96 = "aceofdiamond.jpg"
/97 = "watch.jpg"
/98 = "binder03a.jpg"
/99 = "saw.jpg"
/100 = "acousticguitar02.jpg"
/101 = "record.jpg"
/102 = "ridinghelmet.jpg"
/103 = "pillow01a.jpg"
/104 = "box01a.jpg"
/105 = "baseball_bat.jpg"
/106 = "oneholepunch.jpg"
/107 = "dolly02.jpg"
/108 = "stamp.jpg"
/109 = "nailclipper02b.jpg"
/110 = "notebook02a.jpg"
/111 = "scarf.jpg"
/112 = "balloon01b.jpg"
/113 = "toiletpaper01a.jpg"
/114 = "broom.jpg"
/115 = "snowboard.jpg"
/116 = "boxingglove02b.jpg"
/117 = "suitcase.jpg"
/118 = "wagonwheel.jpg"
/119 = "typewriter.jpg"
/120 = "usbkey.jpg"
/121 = "butter_knife.jpg"
/122 = "shovel02.jpg"
/123 = "chair.jpg"
/124 = "scooter.jpg"
/125 = "apron.jpg"
/126 = "bottleofredwine02.jpg"
/127 = "can_opener.jpg"
/128 = "razor04b.jpg"
/129 = "hourglass.jpg"
/130 = "camera01b.jpg"
/131 = "bird_house.jpg"
/132 = "swissarmyknife01a.jpg"
/133 = "pencil.jpg"
/134 = "wrench.jpg"
/135 = "trumpet.jpg"
/136 = "plugoutlet.jpg"
/137 = "paintroller.jpg"
/138 = "paint.jpg"
/139 = "book01a.jpg"
/140 = "travelmug.jpg"
/141 = "bow.jpg"
/142 = "curtain.jpg"
/143 = "antenna.jpg"
/144 = "hammer.jpg"
/145 = "plunger02.jpg"
/146 = "toyhockeystick02a.jpg"
/147 = "yarn.jpg"
/148 = "curlingiron01a.jpg"
/149 = "headphones.jpg"
/150 = "screwdriver.jpg"
/151 = "wineglass01.jpg"
/152 = "tripod.jpg"
/153 = "doorknob.jpg"
/154 = "axe01.jpg"
/155 = "tape.jpg"
/156 = "teapot.jpg"
/157 = "birdie.jpg"
/158 = "coffeepot01.jpg"
/159 = "tambourine.jpg"
/160 = "cookingpot.jpg"
/161 = "sponge.jpg"
/162 = "rainboot.jpg"
/163 = "cooler.jpg"
/164 = "backpack.jpg"
/165 = "speaker04.jpg"
/166 = "cabasa.jpg"
/167 = "beach_ball.jpg"
/168 = "bowl01.jpg"
/169 = "banjo.jpg"
/170 = "bowling_pin.jpg"
/171 = "boosterseat.jpg"
/172 = "taperuler.jpg"
/173 = "anchor.jpg"
/174 = "scissors11.jpg"
/175 = "carkeys.jpg"
/176 = "paper_towels.jpg"
/177 = "water_bottle.jpg"
/178 = "thermometer.jpg"
/179 = "whitehat.jpg"
/180 = "flashlight03a.jpg"
</item>




Thank you for the code. Isolated excerpts are of little use if I have to spend 30 minutes creating dummy elements to get the code to run and -- more importantly -- have to make guesses about all the things that aren't there. You are welcome to point out the parts you deem relevant, but in addiion please provide something that actually runs. Also, please don't paste lengthy scripts into a post's body -- attach the actual script file to your post instread (+Insert -> Add File). If your code requires external files to run, provide those too. Ideally, put everything needed in a ZIP archive and attach the archive.

All that said, add

<expt>
/ onblockbegin = [
    list.trialList_2080A.reset();
    list.trialList_2080B.reset();
    list.trialList_4060A.reset();
    list.trialList_4060B.reset();
]

/ blocks = [1=learning_block1; 2=learning_block2; 3=learning_block3; 4=learning_block4]
</expt>

and that should make the problem go away.


thank you for the explanation, i appreciate it. i'll run this when i get a chance! sorry to have caused extra work, wasn't sure what was optimal.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search