## Present stimuli with statements based on pre-determined conditions

##### Present stimuli with statements based on pre-determined conditions
 Author Message essematta Group: Forum Members Posts: 2, Visits: 27 Given the script provided below, I am trying to create two blocks of trials. In the first block, participants are presented with 12 trials. Each trials comprises a statement that can be either false (6 trials randomly picked from a list of 12) or true (6 trials randomly picked from a list of 12). In the second block, I want to present again the 12 statements shown in the first block (i.e., repeated trials), plus the other 12 statements not picked in the first block (i.e., new trials). In this block, I also want:- the 12 repeated trials to be associated with two facial stimuli (each presented with 3 true and 3 false statements) - the 12 new trials to be associated with two different facial stimuli (each presented with 3 true and 3 false statements)In the script, these facial stimuli are identified by the element names "avatar"Can you help figure out a solution for this?***Experimnental flow***/ groups = (1 of 1)/ groupassignment = groupnumber/ blocks = [1=PRES_EXP_B_AFF_truth; 2=EVAL_EXP_B_AFF_truth;]***Pres Phase - aff***/ trials = [1-12 = noreplace(PRES_EXP_TB_AFF, PRES_EXP_FB_AFF)]/ items = (0,0,0,0,0,0,0,0,0,0,0)/ items = (0,0,0,0,0,0,0,0,0,0,0)/ presented_in_first_block = false/ ontrialend = [list.t_presented_B_AFF.setitem(1, text.true_items_pres_B_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ stimulustimes = [0=true_items_pres_B_AFF]/ trialduration = 3500/ numframes=1/ ontrialend = [list.f_presented_B_AFF.setitem(1, text.false_items_pres_B_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ stimulustimes = [0=false_items_pres_B_AFF]/ trialduration = 3500/ numframes=1/ items = T_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (50%, 30%)/ txcolor = black/ items = F_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (50%, 30%)/ txcolor = black***Eval Phase - AFF***/ trials = [1-24 = noreplace(EVAL_EXP_TB_AFF_truth, EVAL_EXP_FB_AFF_truth)]/ ontrialend = [values.presented_in_first_block = list.t_presented_B_AFF.item(text.true_items_black_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ anchors = [1="COMPLETELY FALSE"; 6="COMPLETELY TRUE"]/ fontstyle = ("Verdana", 2%, false, false, false, false, 5) / anchorwidth = 90/ stimulusframes = [1=avatar; 1=vignette; 1=truth_quest; 1=true_items_black_AFF]/ mouse=true/ numframes=1/ numpoints=6/ position= (50%, 80%)/ ontrialend = [values.presented_in_first_block = list.f_presented_B_AFF.item(text.false_items_black_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ anchors = [1="COMPLETELY FALSE"; 6="COMPLETELY TRUE"]/ fontstyle = ("Verdana", 2%, false, false, false, false, 5) / anchorwidth = 90/ stimulusframes = [1=avatar; 1=vignette; 1=truth_quest; 1=false_items_black_AFF]/ mouse=true/ numframes=1/ numpoints=6/ position= (50%, 80%)/ items = T_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black/ items = F_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black^^^^PLEASE PROCEED WHEN YOU ARE READY/ items = T_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black/ items = F_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black/ select = noreplace(1-12)/ select = noreplace(1-12)/ items = ("THIS STATEMENT IS...")/ fontstyle = ("Verdana", 3%, true, false, false, false, 5) / position = (50%, 70%)/ txcolor = black/ txbgcolor = white/ items = ("vignette.jpg")/ size = (60%, 50%)/ position = (65%, 35%)/ items = avatar/ size = (30%, 30%)/ position = (20%, 40%)/ select = noreplace/1 = "CFD-WM-003-002-N.jpg"/2 = "CFD-WM-004-010-N.jpg"/3 = "CFD-WM-006-002-N.jpg"/4 = "CFD-WM-009-002-N.jpg"***Statements***/1 = "t1"/2 = "t2"/3 = "t4"/4 = "t4"/5 = "t5"/6 = "t6"/7 = "t7"/8 = "t8"/9 = "t9"/10 = "t10"/11 = "t11"/12 = "t12"/1 = "f1"/2 = "f2"/3 = "f3"/4 = "f4"/5 = "f5"/6 = "f6"/7 = "f7"/8 = "f8"/9 = "f9"/10 = "f10"/11 = "f11"/12 = "f12" Dave posted 9 Months Ago ANSWER Group: Administrators Posts: 13K, Visits: 101K +x essematta - 11/9/2023Given the script provided below, I am trying to create two blocks of trials. In the first block, participants are presented with 12 trials. Each trials comprises a statement that can be either false (6 trials randomly picked from a list of 12) or true (6 trials randomly picked from a list of 12). In the second block, I want to present again the 12 statements shown in the first block (i.e., repeated trials), plus the other 12 statements not picked in the first block (i.e., new trials). In this block, I also want:- the 12 repeated trials to be associated with two facial stimuli (each presented with 3 true and 3 false statements) - the 12 new trials to be associated with two different facial stimuli (each presented with 3 true and 3 false statements)In the script, these facial stimuli are identified by the element names "avatar"Can you help figure out a solution for this?***Experimnental flow***/ groups = (1 of 1)/ groupassignment = groupnumber/ blocks = [1=PRES_EXP_B_AFF_truth; 2=EVAL_EXP_B_AFF_truth;]***Pres Phase - aff***/ trials = [1-12 = noreplace(PRES_EXP_TB_AFF, PRES_EXP_FB_AFF)]/ items = (0,0,0,0,0,0,0,0,0,0,0)/ items = (0,0,0,0,0,0,0,0,0,0,0)/ presented_in_first_block = false/ ontrialend = [list.t_presented_B_AFF.setitem(1, text.true_items_pres_B_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ stimulustimes = [0=true_items_pres_B_AFF]/ trialduration = 3500/ numframes=1/ ontrialend = [list.f_presented_B_AFF.setitem(1, text.false_items_pres_B_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ stimulustimes = [0=false_items_pres_B_AFF]/ trialduration = 3500/ numframes=1/ items = T_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (50%, 30%)/ txcolor = black/ items = F_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (50%, 30%)/ txcolor = black***Eval Phase - AFF***/ trials = [1-24 = noreplace(EVAL_EXP_TB_AFF_truth, EVAL_EXP_FB_AFF_truth)]/ ontrialend = [values.presented_in_first_block = list.t_presented_B_AFF.item(text.true_items_black_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ anchors = [1="COMPLETELY FALSE"; 6="COMPLETELY TRUE"]/ fontstyle = ("Verdana", 2%, false, false, false, false, 5) / anchorwidth = 90/ stimulusframes = [1=avatar; 1=vignette; 1=truth_quest; 1=true_items_black_AFF]/ mouse=true/ numframes=1/ numpoints=6/ position= (50%, 80%)/ ontrialend = [values.presented_in_first_block = list.f_presented_B_AFF.item(text.false_items_black_AFF.currentindex)]/ pretrialpause = 1000/ posttrialpause = 0/ anchors = [1="COMPLETELY FALSE"; 6="COMPLETELY TRUE"]/ fontstyle = ("Verdana", 2%, false, false, false, false, 5) / anchorwidth = 90/ stimulusframes = [1=avatar; 1=vignette; 1=truth_quest; 1=false_items_black_AFF]/ mouse=true/ numframes=1/ numpoints=6/ position= (50%, 80%)/ items = T_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black/ items = F_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black^^^^PLEASE PROCEED WHEN YOU ARE READY/ items = T_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black/ items = F_ITEMS_AFF/ fontstyle = ("Verdana", 3%, false, false, false, false, 5) / size = (40%, 18%)/ position = (70%, 40%)/ txcolor = black/ select = noreplace(1-12)/ select = noreplace(1-12)/ items = ("THIS STATEMENT IS...")/ fontstyle = ("Verdana", 3%, true, false, false, false, 5) / position = (50%, 70%)/ txcolor = black/ txbgcolor = white/ items = ("vignette.jpg")/ size = (60%, 50%)/ position = (65%, 35%)/ items = avatar/ size = (30%, 30%)/ position = (20%, 40%)/ select = noreplace/1 = "CFD-WM-003-002-N.jpg"/2 = "CFD-WM-004-010-N.jpg"/3 = "CFD-WM-006-002-N.jpg"/4 = "CFD-WM-009-002-N.jpg"***Statements***/1 = "t1"/2 = "t2"/3 = "t4"/4 = "t4"/5 = "t5"/6 = "t6"/7 = "t7"/8 = "t8"/9 = "t9"/10 = "t10"/11 = "t11"/12 = "t12"/1 = "f1"/2 = "f2"/3 = "f3"/4 = "f4"/5 = "f5"/6 = "f6"/7 = "f7"/8 = "f8"/9 = "f9"/10 = "f10"/11 = "f11"/12 = "f12"This is a typical old-new paradigm, which has been discussed multiple times. You can find these previous discussions via search, for your convenience I'm linking a few below:https://forums.millisecond.com/Topic17069.aspx#17070https://forums.millisecond.com/Topic21813.aspx#21829https://forums.millisecond.com/Topic34066.aspx

#### Merge Selected

Merge into selected topic...

Merge into merge target...

Merge into a specific topic ID...