I cant get my correct message to work in this srcipt


Author
Message
uni-student92084
uni-student92084
Partner Member (722 reputation)Partner Member (722 reputation)Partner Member (722 reputation)Partner Member (722 reputation)Partner Member (722 reputation)Partner Member (722 reputation)Partner Member (722 reputation)Partner Member (722 reputation)Partner Member (722 reputation)
Group: Forum Members
Posts: 57, Visits: 172
Hello all, 
I'm new to inquisit so please have patience with me :)
In my script I need to have a correct message showen to the participant when they press either I or E correctly. 

Unfortunalty, when I formated a correct message similar to how I formatted my error message, it shows up before the entire trial. I have no idea why this happening. I do get a correct message showen when I make a correct decision but, there is always a correct message before the stimuli have appeared or before I press any keys. 

Could someone point out  what I am doing wrong in my script?  Help would greatly be appreciated!

Thank you

script: <values>
/instructionIndex = 0
/progresswidth = 0
</values>

<expressions>
/progress = 1% * values.progresswidth
</expressions>


<instruct>
/fontstyle = ("Snell Roundhand", 1.43%, false, false, false, false, 5, 0)
/txcolor = black
/nextlabel = "Press the space bar to continue"
</instruct>



<item instrcutions>
/1= "Welcome to the Poltical Party Study
~nThis study is aimed to.....
~nYou will be given a political honestly scores and asked to pick which poltical party you see as most honest
~nBefore you start the study you will run a few practice trials
~nScores will run across the screen and you will place you finger on I and E
~nPress the spacebar to begin
~nIf you make an error a red X will appear"
/2= "Second page of Instrcutions is here"
</item>





<text error>
/ position = (50%, 20%)
/ items = ("Incorrect")
/ color = black
/ fontstyle = ("Arial", 5%, true)
</text>

<text corrrect>
/ position = (50%, 20%)
/ items = ("Correct")
/ color= black
/fontstyle = ("Arial", 5%, true)
</text>




<shape progressbar>
/shape = rectangle
/ size = (70%, 2%)
/ color = gray
/ position = (15%, 95%)
/ halign = left
/ valign = top
</shape>

<shape progressbar_fill>
/shape = rectangle
/ size = (expressions.progress, 2%)
/ color = black
/ position = (15%, 95%)
/ halign = left
/ valign = top
</shape>


<text instrcutions>
/ items = instrcutions
/ position = (10%, 25%)
/ halign = left
/ valign = top
/ hjustify = left
/ vjustify = center
/ size = (80%, 50%)
/ select = values.instructionIndex
</text>

<trial testinstruct>
/ontrialbegin = [ values.progresswidth += 10 ; values. instructionIndex +=1]
/ stimulustimes = [1=instrcutions, progressbar, progressbar_fill]
/ correctresponse = (" ")
/ errormessage = false
</trial>




<item PolALabel>
/1= "Policy A"
</item>

<text PolALabel>
/ items = PolALabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>

<item PolBLabel>
/1= "Policy B"
</item>

<text PolBLabel>
/items= PolBLabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>

<item PolCLabel>
/1= "Policy C"
</item>

<text PolCLabel>
/items= PolCLabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>

<item PolDLabel>
/1= "Policy D"
</item>

<text PolDLabel>
/items= PolDLabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>







<item Demplus>
/1 = "60"
/2 = "67"
/3 = "70"
</item>

<item Demminus>
/1 = "12"
/2 = "2"
/3 = "10"
</item>

<item Repplus>
/1 = "89"
/2 = "79"
/3 = "78"
</item>

<item Repminus>
/1 = "12"
/2 = "13"
/3 = "15"
</item>



<text Demplus1>
/items = Demplus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demplusitems.nextindex
</text>

<text Demplus2>
/items = Demplus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demplusitems.nextindex
</text>

<text Demplus3>
/items = Demplus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demplusitems.nextindex
</text>

<list Demplusitems>
/ poolsize = 3
/ selectionrate = always
/ replace =true
</list>



<text Demminus1>
/items = Demminus
/txcolor = (blue)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demminusitems.nextindex
</text>

<text Demminus2>
/items = Demminus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demminusitems.nextindex
</text>

<text Demminus3>
/items = Demminus
/txcolor = (blue)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demminusitems.nextindex
</text>

<list Demminusitems>
/ poolsize = 3
/ selectionrate = always
/ replace =true
</list>




<text Repplus1>
/items = Repplus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Repplusitems.nextindex
</text>

<text Repplus2>
/items = Repplus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Repplusitems.nextindex
</text>

<text Repplus3>
/items = Repplus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Repplusitems.nextindex
</text>

<list Repplusitems>
/ poolsize = 3
/ selectionrate = always
/ replace =true
</list>




<text Repminus1>
/items = Repminus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select = list.Repminusitems.nextindex
</text>

<text Repminus2>
/items = Repminus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select = list.Repminusitems.nextindex
</text>

<text Repminus3>
/items = Repminus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select = list.Repminusitems.nextindex
</text>

<list Repminusitems>
/ poolsize = 3
/ selectionrate = always
/ replace = true
</list>


<list Demplus>
/items = (text.Demplus1, text.Demplus2, text.Demplus3, text.Repminus1, text.Repminus2, text.Repminus3)
/selectionrate =always
/selectionmode =random
/replace = false
</list>


<list Repplus>
/items = (text.Demminus1,text.Demminus2,text.Demminus3, text.Repplus1,text.Repplus2, text.Repplus3)
/selectionrate =always
/selectionmode =random
/replace = false
</list>



<trial PracticeI> 
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.PracticeI.resetstimulusframes(7000)]
</trial>



<trial PracticeE>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.PracticeE.resetstimulusframes(7000)]
</trial>


<trial DemBI>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 1000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 3000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 5000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 7000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 9000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 11000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.DemBI.resetstimulusframes(7000)]
</trial>




<trial RepBI>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 0);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 2000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 4000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 6000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 8000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 10000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.RepBI.resetstimulusframes(7000)]
</trial>


<trial DemBE>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 1000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 3000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 5000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 7000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 9000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 11000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.DemBE.resetstimulusframes(7000)]
</trial>


<trial RepBE>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 0);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 2000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 4000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 6000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 8000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 10000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.RepBE.resetstimulusframes(7000)]
</trial>


<block PracticeI>
/trials = [ 1= testinstruct; 2= replace(PracticeI)]
/errormessage = true(error2,1000)
/ correctmessage = true(corrrect, 1000)
</block>


<block policy1A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>


<block policy2A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>

<block policy3A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>

<block policy4A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>

<block policy5A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>



<block policy1B>
/ bgstim = (PolBLabel)
/trials= [1= testinstruct; 2= replace(RepBI, DemBE)]
/errormessage = true( error, 1000)
/ correctmessage = true(corrrect, 1000)    
</block>

<block policy2B>
/ bgstim = (PolBLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>


<block policy1C>
/ bgstim = (PolCLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>

<block policy2C>
/ bgstim = (PolCLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>



<block policy1D>
/ bgstim = (PolDLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>

<block policy2D>
/ bgstim = (PolDLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>



<expt>
/subjects = (1 of 4)
/blocks = [1= policy1A ; 2= policy2A; 3=block.policy3A; 4= block.policy4A; 5= block.policy5A]
/groupassignment = groupnumber
</expt>

<expt>
/subjects = (2 of 4)
/blocks = [1= policy1B ; 2= policy2B]
/groupassignment = groupnumber
</expt>

<expt>
/subjects = (3 of 4)
/blocks = [1= policy1C ; 2= policy2C]
/groupassignment = groupnumber
</expt>

<expt>
/subjects = (4 of 4)
/blocks = [1= policy1D ; 2= policy2D]
/groupassignment = groupnumber
</expt>
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: 13K, Visits: 104K
uni-student92084 - 4/2/2020
Hello all, 
I'm new to inquisit so please have patience with me :)
In my script I need to have a correct message showen to the participant when they press either I or E correctly. 

Unfortunalty, when I formated a correct message similar to how I formatted my error message, it shows up before the entire trial. I have no idea why this happening. I do get a correct message showen when I make a correct decision but, there is always a correct message before the stimuli have appeared or before I press any keys. 

Could someone point out  what I am doing wrong in my script?  Help would greatly be appreciated!

Thank you

script: <values>
/instructionIndex = 0
/progresswidth = 0
</values>

<expressions>
/progress = 1% * values.progresswidth
</expressions>


<instruct>
/fontstyle = ("Snell Roundhand", 1.43%, false, false, false, false, 5, 0)
/txcolor = black
/nextlabel = "Press the space bar to continue"
</instruct>



<item instrcutions>
/1= "Welcome to the Poltical Party Study
~nThis study is aimed to.....
~nYou will be given a political honestly scores and asked to pick which poltical party you see as most honest
~nBefore you start the study you will run a few practice trials
~nScores will run across the screen and you will place you finger on I and E
~nPress the spacebar to begin
~nIf you make an error a red X will appear"
/2= "Second page of Instrcutions is here"
</item>





<text error>
/ position = (50%, 20%)
/ items = ("Incorrect")
/ color = black
/ fontstyle = ("Arial", 5%, true)
</text>

<text corrrect>
/ position = (50%, 20%)
/ items = ("Correct")
/ color= black
/fontstyle = ("Arial", 5%, true)
</text>




<shape progressbar>
/shape = rectangle
/ size = (70%, 2%)
/ color = gray
/ position = (15%, 95%)
/ halign = left
/ valign = top
</shape>

<shape progressbar_fill>
/shape = rectangle
/ size = (expressions.progress, 2%)
/ color = black
/ position = (15%, 95%)
/ halign = left
/ valign = top
</shape>


<text instrcutions>
/ items = instrcutions
/ position = (10%, 25%)
/ halign = left
/ valign = top
/ hjustify = left
/ vjustify = center
/ size = (80%, 50%)
/ select = values.instructionIndex
</text>

<trial testinstruct>
/ontrialbegin = [ values.progresswidth += 10 ; values. instructionIndex +=1]
/ stimulustimes = [1=instrcutions, progressbar, progressbar_fill]
/ correctresponse = (" ")
/ errormessage = false
</trial>




<item PolALabel>
/1= "Policy A"
</item>

<text PolALabel>
/ items = PolALabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>

<item PolBLabel>
/1= "Policy B"
</item>

<text PolBLabel>
/items= PolBLabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>

<item PolCLabel>
/1= "Policy C"
</item>

<text PolCLabel>
/items= PolCLabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>

<item PolDLabel>
/1= "Policy D"
</item>

<text PolDLabel>
/items= PolDLabel
/ valign = top
/ halign = center
/ position = (50%, 5%)
/ txcolor = black
/ fontstyle = ("Arial", 5%)
</text>







<item Demplus>
/1 = "60"
/2 = "67"
/3 = "70"
</item>

<item Demminus>
/1 = "12"
/2 = "2"
/3 = "10"
</item>

<item Repplus>
/1 = "89"
/2 = "79"
/3 = "78"
</item>

<item Repminus>
/1 = "12"
/2 = "13"
/3 = "15"
</item>



<text Demplus1>
/items = Demplus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demplusitems.nextindex
</text>

<text Demplus2>
/items = Demplus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demplusitems.nextindex
</text>

<text Demplus3>
/items = Demplus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demplusitems.nextindex
</text>

<list Demplusitems>
/ poolsize = 3
/ selectionrate = always
/ replace =true
</list>



<text Demminus1>
/items = Demminus
/txcolor = (blue)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demminusitems.nextindex
</text>

<text Demminus2>
/items = Demminus
/txcolor = (blue)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demminusitems.nextindex
</text>

<text Demminus3>
/items = Demminus
/txcolor = (blue)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Demminusitems.nextindex
</text>

<list Demminusitems>
/ poolsize = 3
/ selectionrate = always
/ replace =true
</list>




<text Repplus1>
/items = Repplus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Repplusitems.nextindex
</text>

<text Repplus2>
/items = Repplus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Repplusitems.nextindex
</text>

<text Repplus3>
/items = Repplus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/ select = list.Repplusitems.nextindex
</text>

<list Repplusitems>
/ poolsize = 3
/ selectionrate = always
/ replace =true
</list>




<text Repminus1>
/items = Repminus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select = list.Repminusitems.nextindex
</text>

<text Repminus2>
/items = Repminus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select = list.Repminusitems.nextindex
</text>

<text Repminus3>
/items = Repminus
/txcolor = (red)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select = list.Repminusitems.nextindex
</text>

<list Repminusitems>
/ poolsize = 3
/ selectionrate = always
/ replace = true
</list>


<list Demplus>
/items = (text.Demplus1, text.Demplus2, text.Demplus3, text.Repminus1, text.Repminus2, text.Repminus3)
/selectionrate =always
/selectionmode =random
/replace = false
</list>


<list Repplus>
/items = (text.Demminus1,text.Demminus2,text.Demminus3, text.Repplus1,text.Repplus2, text.Repplus3)
/selectionrate =always
/selectionmode =random
/replace = false
</list>



<trial PracticeI> 
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.PracticeI.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.PracticeI.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.PracticeI.resetstimulusframes(7000)]
</trial>



<trial PracticeE>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.PracticeE.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.PracticeE.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.PracticeE.resetstimulusframes(7000)]
</trial>


<trial DemBI>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 1000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 3000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 5000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 7000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 9000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 11000);
    trial.DemBI.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.DemBI.resetstimulusframes(7000)]
</trial>




<trial RepBI>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 0);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 2000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 4000);
  trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 6000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 8000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 10000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.RepBI.insertstimulustime(list.Repplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.RepBI.resetstimulusframes(7000)]
</trial>


<trial DemBE>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 0);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 1000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 2000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 3000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 4000);
  trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 5000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 6000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 7000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 8000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 9000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 10000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 11000);
    trial.DemBE.insertstimulustime(list.Demplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.DemBE.resetstimulusframes(7000)]
</trial>


<trial RepBE>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 0);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 1000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 2000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 3000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 4000);
  trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 5000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 6000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 7000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 8000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 9000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 10000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 11000);
    trial.RepBE.insertstimulustime(list.Repplus.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.RepBE.resetstimulusframes(7000)]
</trial>


<block PracticeI>
/trials = [ 1= testinstruct; 2= replace(PracticeI)]
/errormessage = true(error2,1000)
/ correctmessage = true(corrrect, 1000)
</block>


<block policy1A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>


<block policy2A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>

<block policy3A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>

<block policy4A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>

<block policy5A>
/bgstim = (PolALabel)
/trials = [1= testinstruct;2= replace(RepBE, DemBI)]
/errormessage = true(error, 1000)
/ correctmessage = true(corrrect, 1000)
</block>



<block policy1B>
/ bgstim = (PolBLabel)
/trials= [1= testinstruct; 2= replace(RepBI, DemBE)]
/errormessage = true( error, 1000)
/ correctmessage = true(corrrect, 1000)    
</block>

<block policy2B>
/ bgstim = (PolBLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>


<block policy1C>
/ bgstim = (PolCLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>

<block policy2C>
/ bgstim = (PolCLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>



<block policy1D>
/ bgstim = (PolDLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>

<block policy2D>
/ bgstim = (PolDLabel)
/trials = [1= testinstruct; 2=replace (RepBI, DemBE)]
/errormessage = true( error, 1000)    
/ correctmessage = true(corrrect, 1000)    
</block>



<expt>
/subjects = (1 of 4)
/blocks = [1= policy1A ; 2= policy2A; 3=block.policy3A; 4= block.policy4A; 5= block.policy5A]
/groupassignment = groupnumber
</expt>

<expt>
/subjects = (2 of 4)
/blocks = [1= policy1B ; 2= policy2B]
/groupassignment = groupnumber
</expt>

<expt>
/subjects = (3 of 4)
/blocks = [1= policy1C ; 2= policy2C]
/groupassignment = groupnumber
</expt>

<expt>
/subjects = (4 of 4)
/blocks = [1= policy1D ; 2= policy2D]
/groupassignment = groupnumber
</expt>

You've defined /correctmessage at the <block>-level

<block PracticeI>
/trials = [ 1= testinstruct; 2= replace(PracticeI)]
/errormessage = true(error2,1000)
/ correctmessage = true(corrrect, 1000)
</block>

which means it applies to *all trials* in the block, including the testinstruct trial.

If you don't want a correctmessage for the testinstruct trial set

<trial testinstruct>
/ontrialbegin = [ values.progresswidth += 10 ; values. instructionIndex +=1]
/ stimulustimes = [1=instrcutions, progressbar, progressbar_fill]
/ correctresponse = (" ")
/ errormessage = false
/ correctmessage = false
</trial>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search