Present stimuli with statements based on pre-determined conditions


Author
Message
essematta
essematta
New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)
Group: Forum Members
Posts: 1, Visits: 17
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***

<expt >
/ groups = (1 of 1)
/ groupassignment = groupnumber
/ blocks = [1=PRES_EXP_B_AFF_truth;
2=EVAL_EXP_B_AFF_truth;]
</expt>

***Pres Phase - aff***

<block PRES_EXP_B_AFF_truth>
/ trials = [1-12 = noreplace(PRES_EXP_TB_AFF, PRES_EXP_FB_AFF)]
</block>

<list t_presented_B_AFF>
/ items = (0,0,0,0,0,0,0,0,0,0,0)
</list>

<list f_presented_B_AFF>
/ items = (0,0,0,0,0,0,0,0,0,0,0)
</list>

<values>
/ presented_in_first_block = false
</values>

<trial PRES_EXP_TB_AFF>
/ 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
</trial>

<trial PRES_EXP_FB_AFF>
/ 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
</trial>

<text true_items_pres_B_AFF>
/ items = T_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (50%, 30%)
/ txcolor = black
</text>

<text false_items_pres_B_AFF>
/ items = F_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (50%, 30%)
/ txcolor = black
</text>


***Eval Phase - AFF***

<block EVAL_EXP_B_AFF_truth>
/ trials = [1-24 = noreplace(EVAL_EXP_TB_AFF_truth, EVAL_EXP_FB_AFF_truth)]
</block>

<likert EVAL_EXP_TB_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%)
</likert>

<likert EVAL_EXP_FB_AFF_truth>
/ 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%)
</likert>

<text true_items_black_AFF>
/ items = T_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<text false_items_black_AFF>
/ items = F_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<page pre_eval_AFF>
^^^^PLEASE PROCEED WHEN YOU ARE READY
</page>


<text true_items_pres_B2_AFF>
/ items = T_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<text false_items_pres_B2_AFF>
/ items = F_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<counter mycounter_T_AFF>
/ select = noreplace(1-12)
</counter>

<counter mycounter_F_AFF>
/ select = noreplace(1-12)
</counter>


<text truth_quest>
/ items = ("THIS STATEMENT IS...")
/ fontstyle = ("Verdana", 3%, true, false, false, false, 5)
/ position = (50%, 70%)
/ txcolor = black
/ txbgcolor = white
</text>

<picture vignette>
/ items = ("vignette.jpg")
/ size = (60%, 50%)
/ position = (65%, 35%)
</picture>

<picture avatar>
/ items = avatar
/ size = (30%, 30%)
/ position = (20%, 40%)
/ select = noreplace
</picture>

<item avatar>
/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"
</item>

***Statements***

<item T_ITEMS_AFF>
/1 = "t1"
/2 = "t2"
/3 = "t4"
/4 = "t4"
/5 = "t5"
/6 = "t6"
/7 = "t7"
/8 = "t8"
/9 = "t9"
/10 = "t10"
/11 = "t11"
/12 = "t12"
</item>

<item F_ITEMS_AFF>
/1 = "f1"
/2 = "f2"
/3 = "f3"
/4 = "f4"
/5 = "f5"
/6 = "f6"
/7 = "f7"
/8 = "f8"
/9 = "f9"
/10 = "f10"
/11 = "f11"
/12 = "f12"
</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: 98K
essematta - 11/9/2023
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***

<expt >
/ groups = (1 of 1)
/ groupassignment = groupnumber
/ blocks = [1=PRES_EXP_B_AFF_truth;
2=EVAL_EXP_B_AFF_truth;]
</expt>

***Pres Phase - aff***

<block PRES_EXP_B_AFF_truth>
/ trials = [1-12 = noreplace(PRES_EXP_TB_AFF, PRES_EXP_FB_AFF)]
</block>

<list t_presented_B_AFF>
/ items = (0,0,0,0,0,0,0,0,0,0,0)
</list>

<list f_presented_B_AFF>
/ items = (0,0,0,0,0,0,0,0,0,0,0)
</list>

<values>
/ presented_in_first_block = false
</values>

<trial PRES_EXP_TB_AFF>
/ 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
</trial>

<trial PRES_EXP_FB_AFF>
/ 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
</trial>

<text true_items_pres_B_AFF>
/ items = T_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (50%, 30%)
/ txcolor = black
</text>

<text false_items_pres_B_AFF>
/ items = F_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (50%, 30%)
/ txcolor = black
</text>


***Eval Phase - AFF***

<block EVAL_EXP_B_AFF_truth>
/ trials = [1-24 = noreplace(EVAL_EXP_TB_AFF_truth, EVAL_EXP_FB_AFF_truth)]
</block>

<likert EVAL_EXP_TB_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%)
</likert>

<likert EVAL_EXP_FB_AFF_truth>
/ 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%)
</likert>

<text true_items_black_AFF>
/ items = T_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<text false_items_black_AFF>
/ items = F_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<page pre_eval_AFF>
^^^^PLEASE PROCEED WHEN YOU ARE READY
</page>


<text true_items_pres_B2_AFF>
/ items = T_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<text false_items_pres_B2_AFF>
/ items = F_ITEMS_AFF
/ fontstyle = ("Verdana", 3%, false, false, false, false, 5)
/ size = (40%, 18%)
/ position = (70%, 40%)
/ txcolor = black
</text>

<counter mycounter_T_AFF>
/ select = noreplace(1-12)
</counter>

<counter mycounter_F_AFF>
/ select = noreplace(1-12)
</counter>


<text truth_quest>
/ items = ("THIS STATEMENT IS...")
/ fontstyle = ("Verdana", 3%, true, false, false, false, 5)
/ position = (50%, 70%)
/ txcolor = black
/ txbgcolor = white
</text>

<picture vignette>
/ items = ("vignette.jpg")
/ size = (60%, 50%)
/ position = (65%, 35%)
</picture>

<picture avatar>
/ items = avatar
/ size = (30%, 30%)
/ position = (20%, 40%)
/ select = noreplace
</picture>

<item avatar>
/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"
</item>

***Statements***

<item T_ITEMS_AFF>
/1 = "t1"
/2 = "t2"
/3 = "t4"
/4 = "t4"
/5 = "t5"
/6 = "t6"
/7 = "t7"
/8 = "t8"
/9 = "t9"
/10 = "t10"
/11 = "t11"
/12 = "t12"
</item>

<item F_ITEMS_AFF>
/1 = "f1"
/2 = "f2"
/3 = "f3"
/4 = "f4"
/5 = "f5"
/6 = "f6"
/7 = "f7"
/8 = "f8"
/9 = "f9"
/10 = "f10"
/11 = "f11"
/12 = "f12"
</item>


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#17070
https://forums.millisecond.com/Topic21813.aspx#21829
https://forums.millisecond.com/Topic34066.aspx

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search