Millisecond Forums

## Associating a specific list of item to a specific stimulus

https://forums.millisecond.com/Topic35201.aspx

 By Daniela Ruzzante - 2/15/2023 Hi Everyone, I'm not new to inquisit but in this momento I'm having trouble with an experiment I'm building. This is the paradigm i need to build. I have two different kind of stimuli (a figure and a text) that needs to be followed by 8 different word. participant need to say if the word was part of the phrase or not. The problem is that I have 16 figure and 16 phrases, and each phrases has its own list of words. At the same time, the figure and the phrase, once they have been presented, they do not need to appear again. I've been able to pair the two stimuli, but now i'm having trouble in pairing the list of words to the specific phrases. Basically, What I need to tell Inquisit is to present list of words "A" only when the first phrase appeard. This is what i've come so far,, any idea on how to solve the problem? Many thanks and I hope I've been clear :)/ items = frasi/ position = (50,70)/ numitems = 4/ select = values.itemnumber/ resetinterval = 0/ 1 = "Ha rubato il portafogli"/ 2 = "Ha aiutato il senzatetto"/ 3 = "Ha letto tutto il libro in un giorno"/ 4 = "Si è perso nel parcheggio"/ halign = center/ items = stimoli/ erase = true (255, 255, 255)/ numitems = 4/ select = values.itemnumber/ position = (50, 40)/ resetinterval = 0/ 1="A1.jpg"/ 2="A2.jpg"/ 3="P1.jpg"/ 4="P2.jpg"/ poolsize = 4/ itemnumber = 1/ ontrialbegin = [values.itemnumber = list.allitemnumbers.nextindex]/ stimulustimes = [0=stimoli; 0=frasi] / timeout = 5000/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)************/numitems = 2/items = ("Portafogli", "Rubato")/font = ("arial", -30, 600, 0, 49)/txbgcolor = (255, 255, 255)/position = (10, 10)/numitems = 1/items = ("Disonesto")/font = ("arial", -30, 600, 0, 49)/txbgcolor = (255, 255, 255)/position = (10, 10)/validkeys = ("D","K")/correctresponse = ("D")/ stimulusframes=[1=Parole1]/ numframes=2/posttrialpause = 500/validkeys = ("D","K")/correctresponse = ("K")/ stimulusframes=[1=Probe1]/ numframes=1/posttrialpause = 500/ trials = [1-3 = noreplace(paroleFrase1,probeFrase1)]/ screencolor = (255, 255, 255)/ skip /subjects = (1 of 1)/blocks = [1= provaBlocco_1; 2=Compito_1] By Dave - 2/15/2023 +x Daniela Ruzzante - 2/15/2023Hi Everyone, I'm not new to inquisit but in this momento I'm having trouble with an experiment I'm building. This is the paradigm i need to build. I have two different kind of stimuli (a figure and a text) that needs to be followed by 8 different word. participant need to say if the word was part of the phrase or not. The problem is that I have 16 figure and 16 phrases, and each phrases has its own list of words. At the same time, the figure and the phrase, once they have been presented, they do not need to appear again. I've been able to pair the two stimuli, but now i'm having trouble in pairing the list of words to the specific phrases. Basically, What I need to tell Inquisit is to present list of words "A" only when the first phrase appeard. This is what i've come so far,, any idea on how to solve the problem? Many thanks and I hope I've been clear :)/ items = frasi/ position = (50,70)/ numitems = 4/ select = values.itemnumber/ resetinterval = 0/ 1 = "Ha rubato il portafogli"/ 2 = "Ha aiutato il senzatetto"/ 3 = "Ha letto tutto il libro in un giorno"/ 4 = "Si è perso nel parcheggio"/ halign = center/ items = stimoli/ erase = true (255, 255, 255)/ numitems = 4/ select = values.itemnumber/ position = (50, 40)/ resetinterval = 0/ 1="A1.jpg"/ 2="A2.jpg"/ 3="P1.jpg"/ 4="P2.jpg"/ poolsize = 4/ itemnumber = 1/ ontrialbegin = [values.itemnumber = list.allitemnumbers.nextindex]/ stimulustimes = [0=stimoli; 0=frasi] / timeout = 5000/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)************/numitems = 2/items = ("Portafogli", "Rubato")/font = ("arial", -30, 600, 0, 49)/txbgcolor = (255, 255, 255)/position = (10, 10)/numitems = 1/items = ("Disonesto")/font = ("arial", -30, 600, 0, 49)/txbgcolor = (255, 255, 255)/position = (10, 10)/validkeys = ("D","K")/correctresponse = ("D")/ stimulusframes=[1=Parole1]/ numframes=2/posttrialpause = 500/validkeys = ("D","K")/correctresponse = ("K")/ stimulusframes=[1=Probe1]/ numframes=1/posttrialpause = 500/ trials = [1-3 = noreplace(paroleFrase1,probeFrase1)]/ screencolor = (255, 255, 255)/ skip /subjects = (1 of 1)/blocks = [1= provaBlocco_1; 2=Compito_1]The way to do this elegantly and efficiently is to use nested lists to select the probe items applicable to the sentence presented. Example below:/ sentencenumber = 1/ probenumber = 1/ probetype = ""/ probecount = 0/ poolsize = 4// 4 sentences in this example/ trials = [1-4 = sentencetrial] / ontrialbegin = [    values.sentencenumber = list.sentences.nextindex;    values.probecount = 0;    values.probenumber = "";    values.probetype = "";]/ stimulusframes = [1=sentence]/ validresponse = (57)/ branch = [    trial.probetrial;]/ ontrialbegin = [    values.probecount += 1;    values.probenumber = list.probelist.nextvalue;    values.probetype = list.probetype.nextvalue;]/ stimulusframes = [1=wordprobe]/ validresponse = ("D", "K")/ iscorrectresponse = [    (values.probetype == 1 && trial.probetrial.response == 32) || (values.probetype == 0 && trial.probetrial.response == 37)]/ branch = [    if (values.probecount < 8) {        trial.probetrial;    };]/ items = sentenceitems/ select = values.sentencenumber/ 1 = "Sentence A"/ 2 = "Sentence B"/ 3 = "Sentence C"/ 4 = "Sentence D"// select the list of probes according to the presented sentence number/ items = (list.aprobe.nextvalue, list.bprobe.nextvalue, list.cprobe.nextvalue, list.dprobe.nextvalue)/ selectionmode = values.sentencenumber/ items = (list.aprobetype.nextvalue, list.bprobetype.nextvalue, list.cprobetype.nextvalue, list.dprobetype.nextvalue)/ selectionmode = values.sentencenumber// probes pertaining to sentence A are items 1 to 8/ items = (1,2,3,4,5,6,7,8)// 1 = probe is target (was part of sentence)// 2 = probe is distractor (was not part of sentence)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.aprobe.currentindex// probes pertaining to sentence B are items 9 to 16/ items = (9,10,11,12,13,14,15,16)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.bprobe.currentindex// probes pertaining to sentence C are items 17 to 24/ items = (17,18,19,20,21,22,23,24)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.cprobe.currentindex// probes pertaining to sentence D are items 25 to 32/ items = (25,26,27,28,29,30,31,32)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.dprobe.currentindex/ 1 = "A Target 1"/ 2 = "A Target 2"/ 3 = "A Target 3"/ 4 = "A Target 4"/ 5 = "A Distractor 1"/ 6 = "A Distractor 2"/ 7 = "A Distractor 3"/ 8 = "A Distractor 4"/ 9 = "B Target 1"/ 10 = "B Target 2"/ 11 = "B Target 3"/ 12 = "B Target 4"/ 13 = "B Distractor 1"/ 14 = "B Distractor 2"/ 15 = "B Distractor 3"/ 16 = "B Distractor 4"/ 17 = "C Target 1"/ 18 = "C Target 2"/ 19 = "C Target 3"/ 20 = "C Target 4"/ 21 = "C Distractor 1"/ 22 = "C Distractor 2"/ 23 = "C Distractor 3"/ 24 = "C Distractor 4"/ 25 = "D Target 1"/ 26 = "D Target 2"/ 27 = "D Target 3"/ 28 = "D Target 4"/ 29 = "D Distractor 1"/ 30 = "D Distractor 2"/ 31 = "D Distractor 3"/ 32 = "D Distractor 4"/ items = wordprobeitems/ select = values.probenumber By Daniela Ruzzante - 2/15/2023 +x Dave - 2/15/2023+x Daniela Ruzzante - 2/15/2023Hi Everyone, I'm not new to inquisit but in this momento I'm having trouble with an experiment I'm building. This is the paradigm i need to build. I have two different kind of stimuli (a figure and a text) that needs to be followed by 8 different word. participant need to say if the word was part of the phrase or not. The problem is that I have 16 figure and 16 phrases, and each phrases has its own list of words. At the same time, the figure and the phrase, once they have been presented, they do not need to appear again. I've been able to pair the two stimuli, but now i'm having trouble in pairing the list of words to the specific phrases. Basically, What I need to tell Inquisit is to present list of words "A" only when the first phrase appeard. This is what i've come so far,, any idea on how to solve the problem? Many thanks and I hope I've been clear :)/ items = frasi/ position = (50,70)/ numitems = 4/ select = values.itemnumber/ resetinterval = 0/ 1 = "Ha rubato il portafogli"/ 2 = "Ha aiutato il senzatetto"/ 3 = "Ha letto tutto il libro in un giorno"/ 4 = "Si è perso nel parcheggio"/ halign = center/ items = stimoli/ erase = true (255, 255, 255)/ numitems = 4/ select = values.itemnumber/ position = (50, 40)/ resetinterval = 0/ 1="A1.jpg"/ 2="A2.jpg"/ 3="P1.jpg"/ 4="P2.jpg"/ poolsize = 4/ itemnumber = 1/ ontrialbegin = [values.itemnumber = list.allitemnumbers.nextindex]/ stimulustimes = [0=stimoli; 0=frasi] / timeout = 5000/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)/trials = [1 = noreplace(Slides)]/screencolor = (255, 255, 255)************/numitems = 2/items = ("Portafogli", "Rubato")/font = ("arial", -30, 600, 0, 49)/txbgcolor = (255, 255, 255)/position = (10, 10)/numitems = 1/items = ("Disonesto")/font = ("arial", -30, 600, 0, 49)/txbgcolor = (255, 255, 255)/position = (10, 10)/validkeys = ("D","K")/correctresponse = ("D")/ stimulusframes=[1=Parole1]/ numframes=2/posttrialpause = 500/validkeys = ("D","K")/correctresponse = ("K")/ stimulusframes=[1=Probe1]/ numframes=1/posttrialpause = 500/ trials = [1-3 = noreplace(paroleFrase1,probeFrase1)]/ screencolor = (255, 255, 255)/ skip /subjects = (1 of 1)/blocks = [1= provaBlocco_1; 2=Compito_1]The way to do this elegantly and efficiently is to use nested lists to select the probe items applicable to the sentence presented. Example below:/ sentencenumber = 1/ probenumber = 1/ probetype = ""/ probecount = 0/ poolsize = 4// 4 sentences in this example/ trials = [1-4 = sentencetrial] / ontrialbegin = [    values.sentencenumber = list.sentences.nextindex;    values.probecount = 0;    values.probenumber = "";    values.probetype = "";]/ stimulusframes = [1=sentence]/ validresponse = (57)/ branch = [    trial.probetrial;]/ ontrialbegin = [    values.probecount += 1;    values.probenumber = list.probelist.nextvalue;    values.probetype = list.probetype.nextvalue;]/ stimulusframes = [1=wordprobe]/ validresponse = ("D", "K")/ iscorrectresponse = [    (values.probetype == 1 && trial.probetrial.response == 32) || (values.probetype == 0 && trial.probetrial.response == 37)]/ branch = [    if (values.probecount < 8) {        trial.probetrial;    };]/ items = sentenceitems/ select = values.sentencenumber/ 1 = "Sentence A"/ 2 = "Sentence B"/ 3 = "Sentence C"/ 4 = "Sentence D"// select the list of probes according to the presented sentence number/ items = (list.aprobe.nextvalue, list.bprobe.nextvalue, list.cprobe.nextvalue, list.dprobe.nextvalue)/ selectionmode = values.sentencenumber/ items = (list.aprobetype.nextvalue, list.bprobetype.nextvalue, list.cprobetype.nextvalue, list.dprobetype.nextvalue)/ selectionmode = values.sentencenumber// probes pertaining to sentence A are items 1 to 8/ items = (1,2,3,4,5,6,7,8)// 1 = probe is target (was part of sentence)// 2 = probe is distractor (was not part of sentence)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.aprobe.currentindex// probes pertaining to sentence B are items 9 to 16/ items = (9,10,11,12,13,14,15,16)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.bprobe.currentindex// probes pertaining to sentence C are items 17 to 24/ items = (17,18,19,20,21,22,23,24)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.cprobe.currentindex// probes pertaining to sentence D are items 25 to 32/ items = (25,26,27,28,29,30,31,32)/ items = (1,1,1,1,0,0,0,0)/ selectionmode = list.dprobe.currentindex/ 1 = "A Target 1"/ 2 = "A Target 2"/ 3 = "A Target 3"/ 4 = "A Target 4"/ 5 = "A Distractor 1"/ 6 = "A Distractor 2"/ 7 = "A Distractor 3"/ 8 = "A Distractor 4"/ 9 = "B Target 1"/ 10 = "B Target 2"/ 11 = "B Target 3"/ 12 = "B Target 4"/ 13 = "B Distractor 1"/ 14 = "B Distractor 2"/ 15 = "B Distractor 3"/ 16 = "B Distractor 4"/ 17 = "C Target 1"/ 18 = "C Target 2"/ 19 = "C Target 3"/ 20 = "C Target 4"/ 21 = "C Distractor 1"/ 22 = "C Distractor 2"/ 23 = "C Distractor 3"/ 24 = "C Distractor 4"/ 25 = "D Target 1"/ 26 = "D Target 2"/ 27 = "D Target 3"/ 28 = "D Target 4"/ 29 = "D Distractor 1"/ 30 = "D Distractor 2"/ 31 = "D Distractor 3"/ 32 = "D Distractor 4"/ items = wordprobeitems/ select = values.probenumberOh, it worked perfectly. I only added the picture as stimuli and it worked!thank you very much!