Millisecond Forums

Playing either VideoA1 or VideoB1

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

By Erthos - 6/22/2016

Hey there,

i've got two problems including my the design of my current study-project into a running script.
The design requires Videos of 12 footballplayers, standing in two different postures. In the end there are 24 Videos, half of them with a player standing dominant and the other with a person standing submissive. For example: Video "01.1D" shows the first player standing dominant, "01.1U" shows the first player standing submissive, "02.1D" shows the second player standing dominant, "02.1U" shows the second player standing submissive, etc..
Participants should see a random video (regardless of the type of video) and answer two questions afterwards. But they should only see either in the dominant or submissive video of one player. In the end they should see 12 videos randomly, but one video per player, either dominant or submissive. Furthermore they should see a total of six videos with a player standing dominant and six with a player standing submissive. 
I tried using /skip to adjust, that e.g. block "01.1D" should not be played if the block "01.1U" already ran (-> meanlatency >=0) and vice versa. I'm not sure wheather my script is deficient or this is just the wrong way, but if i include the /skip command the respective video won't be played at all. Is there any (other) possibility to implement this design with inquisit?

My second problem is even worse and by now i've got no clue how to implement it:
And the very end, after all 12 videos, the participants should see photos of the 12 players they've already seen in the respective posture. At this time the participant should choose 6 of the players joining their own team. So the program needs to record which posture of which player was played and choose the respective photo afterwards. I've got no idea how to write a script, which implicates this kind of procedure and hope some of you can help me...

Script so far:

***** Defaults *****

<defaults>
/ screencolor = (255, 255, 255)
/ fontstyle = ("Verdana", 20pt)
</defaults>

***** Videos und Items *****

<video 1.1D>
/ items = 1.1D
/ size = (90%, 90%)
</video>

<item 1.1D>
/ 1 = "1.1D.mp4"
</item>

<video 2.1D>
/ items = 2.1D
/ size = (90%, 90%)
</video>

<item 2.1D>
/ 1 = "2.1D.mp4"
</item>

<video 3.1D>
/ items = 3.1D
/ size = (90%, 90%)
</video>

<item 3.1D>
/ 1 = "3.1D.mp4"
</item>

<video 4.1D>
/ items = 4.1D
/ size = (90%, 90%)
</video>

<item 4.1D>
/ 1 = "4.1D.mp4"
</item>

<video 5.1D>
/ items = 5.1D
/ size = (90%, 90%)
</video>

<item 5.1D>
/ 1 = "5.1D.mp4"
</item>

<video 6.1D>
/ items = 6.1D
/ size = (90%, 90%)
</video>

<item 6.1D>
/ 1 = "6.1D.mp4"
</item>

<video 7.1D>
/ items = 7.1D
/ size = (90%, 90%)
</video>

<item 7.1D>
/ 1 = "7.1D.mp4"
</item>

<video 8.1D>
/ items = 8.1D
/ size = (90%, 90%)
</video>

<item 8.1D>
/ 1 = "8.1D.mp4"
</item>

<video 9.1D>
/ items = 9.1D
/ size = (90%, 90%)
</video>

<item 9.1D>
/ 1 = "9.1D.mp4"
</item>

<video 10.1D>
/ items = 10.1D
/ size = (90%, 90%)
</video>

<item 10.1D>
/ 1 = "10.1D.mp4"
</item>

<video 11.1D>
/ items = 11.1D
/ size = (90%, 90%)
</video>

<item 11.1D>
/ 1 = "11.1D.mp4"
</item>

<video 12.1D>
/ items = 12.1D
/ size = (90%, 90%)
</video>

<item 12.1D>
/ 1 = "12.1D.mp4"
</item>

<video 1.1U>
/ items = 1.1U
/ size = (90%, 90%)
</video>

<item 1.1U>
/1 = "1.1U.mp4"
</item>

<video 2.1U>
/ items = 2.1U
/ size = (90%, 90%)
</video>

<item 2.1U>
/1 = "2.1U.mp4"
</item>

<video 3.1U>
/ items = 3.1U
/ size = (90%, 90%)
</video>

<item 3.1U>
/1 = "3.1U.mp4"
</item>

<video 4.1U>
/ items = 4.1U
/ size = (90%, 90%)
</video>

<item 4.1U>
/1 = "4.1U.mp4"
</item>

<video 5.1U>
/ items = 5.1U
/ size = (90%, 90%)
</video>

<item 5.1U>
/1 = "5.1U.mp4"
</item>

<video 6.1U>
/ items = 6.1U
/ size = (90%, 90%)
</video>

<item 6.1U>
/1 = "6.1U.mp4"
</item>

<video 7.1U>
/ items = 7.1U
/ size = (90%, 90%)
</video>

<item 7.1U>
/1 = "7.1U.mp4"
</item>

<video 8.1U>
/ items = 8.1U
/ size = (90%, 90%)
</video>

<item 8.1U>
/1 = "8.1U.mp4"
</item>

<video 9.1U>
/ items = 9.1U
/ size = (90%, 90%)
</video>

<item 9.1U>
/1 = "9.1U.mp4"
</item>

<video 10.1U>
/ items = 10.1U
/ size = (90%, 90%)
</video>

<item 10.1U>
/1 = "10.1U.mp4"
</item>

<video 11.1U>
/ items = 11.1U
/ size = (90%, 90%)
</video>

<item 11.1U>
/1 = "11.1U.mp4"
</item>

<video 12.1U>
/ items = 12.1U
/ size = (90%, 90%)
</video>

<item 12.1U>
/1 = "12.1U.mp4"
</item>

***** Slider *****

<slider ownteam>
/ caption = "...diese Spielerin in den Mannschaftskader deines eigenen Teams berufen wird?
"
/ labels = ("Überhaupt nicht zuversichtlich", "Mittelmäßig zuversichtlich","Sehr zuversichtlich")
/ range = (0, 100)
/ increment = 10
/ slidersize = (60%, 5%)
/ showticks = true
/ showtooltips = true
/ required = true
</slider>

<slider oppteam>
/ caption = "...diese Spielerin beim Gegner spielt?
"
/ labels = ("Überhaupt nicht zuversichtlich", "Mittelmäßig zuversichtlich","Sehr zuversichtlich")
/ range = (0, 100)
/ increment = 10
/ slidersize = (60%, 5%)
/ showticks = true
/ showtooltips = true
/ required = true
</slider>

***** Trials und Surveypages *****

<trial video_1.1D>
/ stimulusframes = [1= 1.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_2.1D>
/ stimulusframes = [1= 2.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_3.1D>
/ stimulusframes = [1= 3.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_4.1D>
/ stimulusframes = [1= 4.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_5.1D>
/ stimulusframes = [1= 5.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_6.1D>
/ stimulusframes = [1= 6.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_7.1D>
/ stimulusframes = [1= 7.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_8.1D>
/ stimulusframes = [1= 8.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_9.1D>
/ stimulusframes = [1= 9.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_10.1D>
/ stimulusframes = [1= 10.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_11.1D>
/ stimulusframes = [1= 11.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_12.1D>
/ stimulusframes = [1= 12.1D]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_1.1U>
/ stimulusframes = [1= 1.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_2.1U>
/ stimulusframes = [1= 2.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_3.1U>
/ stimulusframes = [1= 3.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_4.1U>
/ stimulusframes = [1= 4.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_5.1U>
/ stimulusframes = [1= 5.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_6.1U>
/ stimulusframes = [1= 6.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_7.1U>
/ stimulusframes = [1= 7.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_8.1U>
/ stimulusframes = [1= 8.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_9.1U>
/ stimulusframes = [1= 9.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_10.1U>
/ stimulusframes = [1= 10.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_11.1U>
/ stimulusframes = [1= 11.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<trial video_12.1U>
/ stimulusframes = [1= 12.1U]
/ pretrialpause = 50
/ posttrialpause = 50
/ timeout = (18000)
</trial>

<surveypage assurance>
/ caption = "Wie zuversichtlich bist du, dass du mit deinem Team das Aufstiegsspiel gewinnst, wenn..."
/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)
/ showpagenumbers = false
/ showquestionnumbers = true
/ itemfontstyle = ("Verdana", -14, false, false, false, false, 5, 0)
/ questions = [1=ownteam; 2=oppteam]
/ finishlabel = "Weiter"
/ nextbuttonposition = (90%, 90%)
</surveypage>

***** Demographics und Sports *****

<textbox age>
/ caption = "Alter"
/ range = (7,110)
</textbox>

<radiobuttons sex>
/ caption = "Geschlecht"
/ options = ("Männlich", "Weiblich")
/ optionvalues = ("0", "1")
</radiobuttons>

<radiobuttons teamsports>
/ caption = "Übst Du momentan eine Mannschaftssportart im Verein aus oder hast Du schon einmal eine Mannschaftssportart im Verein ausgeübt?"
/ options = ("Ja", "Nein")
/ optionvalues = ("1", "2")
</radiobuttons>

<textbox experience>
/ caption = "Wenn ja, wie lange (in Jahren) hast du diese Mannschaftssportart bereits im Verein ausgeübt?"
/ range = (0, 50)
</textbox>

<checkboxes sports>
/ caption = "Welche Sportarten übst du aus oder hast du ausgeübt?"
/ options = ("Tischtennis", "Tennis", "Beachvolleyball", "Badminton", "Basketball", "Handball", "Volleyball", "Fußball", "Unihockey")
/ other = "Andere"
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")
</checkboxes>

<surveypage demographics_sports>
/ caption = "Persönliche Angaben:"
/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)
/ showpagenumbers = false
/ itemfontstyle = ("Verdana", -12, false, false, false, false, 5, 0)
/ questions = [1=age; 2=sex; 3=teamsports; 4=experience; 5=sports]
/ finishlabel = "Beenden"
/ nextbuttonposition = (90%, 90%)
</surveypage>

***** Blocks und Survey *****

<block 01.1D_survey>
/ trials = [1=video_1.1D; 2= assurance]
/ skip = [if(block.01.1U_survey.meanlatency >=0)]
</block>

<block 02.1D_survey>
/ trials = [1=video_2.1D; 2= assurance]
/ skip = [if(block.02.1U_survey.meanlatency >=0)]
</block>

<block 03.1D_survey>
/ trials = [1=video_3.1D; 2= assurance]
/ skip = [if(block.03.1U_survey.meanlatency >=0)]
</block>

<block 04.1D_survey>
/ trials = [1=video_4.1D; 2= assurance]
/ skip = [if(block.04.1U_survey.meanlatency >=0)]
</block>

<block 05.1D_survey>
/ trials = [1=video_5.1D; 2= assurance]
/ skip = [if(block.05.1U_survey.meanlatency >=0)]
</block>

<block 06.1D_survey>
/ trials = [1=video_6.1D; 2= assurance]
/ skip = [if(block.06.1U_survey.meanlatency >=0)]
</block>

<block 07.1D_survey>
/ trials = [1=video_7.1D; 2= assurance]
/ skip = [if(block.07.1U_survey.meanlatency >=0)]
</block>

<block 08.1D_survey>
/ trials = [1=video_8.1D; 2= assurance]
/ skip = [if(block.08.1U_survey.meanlatency >=0)]
</block>

<block 09.1D_survey>
/ trials = [1=video_9.1D; 2= assurance]
/ skip = [if(block.09.1U_survey.meanlatency >=0)]
</block>

<block 10.1D_survey>
/ trials = [1=video_10.1D; 2= assurance]
/ skip = [if(block.10.1U_survey.meanlatency >=0)]
</block>

<block 11.1D_survey>
/ trials = [1=video_11.1D; 2= assurance]
/ skip = [if(block.11.1U_survey.meanlatency >=0)]
</block>

<block 12.1D_survey>
/ trials = [1=video_12.1D; 2= assurance]
/ skip = [if(block.12.1U_survey.meanlatency >=0)]
</block>

<block 01.1U_survey>
/ trials = [1=video_1.1U; 2= assurance]
/ skip = [if(block.01.1D_survey.meanlatency >=0)]
</block>

<block 02.1U_survey>
/ trials = [1=video_2.1U; 2= assurance]
/ skip = [if(block.02.1D_survey.meanlatency >=0)]
</block>

<block 03.1U_survey>
/ trials = [1=video_3.1U; 2= assurance]
/ skip = [if(block.03.1D_survey.meanlatency >=0)]
</block>

<block 04.1U_survey>
/ trials = [1=video_4.1U; 2= assurance]
/ skip = [if(block.04.1D_survey.meanlatency >=0)]
</block>

<block 05.1U_survey>
/ trials = [1=video_5.1U; 2= assurance]
/ skip = [if(block.05.1D_survey.meanlatency >=0)]
</block>

<block 06.1U_survey>
/ trials = [1=video_6.1U; 2= assurance]
/ skip = [if(block.06.1D_survey.meanlatency >=0)]
</block>

<block 07.1U_survey>
/ trials = [1=video_7.1U; 2= assurance]
/ skip = [if(block.07.1D_survey.meanlatency >=0)]
</block>

<block 08.1U_survey>
/ trials = [1=video_8.1U; 2= assurance]
/ skip = [if(block.08.1D_survey.meanlatency >=0)]
</block>

<block 09.1U_survey>
/ trials = [1=video_9.1U; 2= assurance]
/ skip = [if(block.09.1D_survey.meanlatency >=0)]
</block>

<block 10.1U_survey>
/ trials = [1=video_10.1U; 2= assurance]
/ skip = [if(block.10.1D_survey.meanlatency >=0)]
</block>

<block 11.1U_survey>
/ trials = [1=video_11.1U; 2= assurance]
/ skip = [if(block.11.1D_survey.meanlatency >=0)]
</block>

<block 12.1U_survey>
/ trials = [1=video_12.1U; 2= assurance]
/ skip = [if(block.12.1D_survey.meanlatency >=0)]
</block>

<survey demographics_sports>
/ pages = [1=demographics_sports]
</survey>

***** Text und Instruktionen *****

<page introduction>
^Körpersprache im Teamsport
^^^^Liebe Teilnehmerin, lieber Teilnehmer,
^^vielen Dank für Deine Teilnahme an dieser Studie.
^^^Wir wollen damit untersuchen, inwieweit es möglich ist, Personen einzuschätzen, ohne sie unmittelbar zu kennen.
</page>

<page instructions1>
^Im Folgenden werden Dir Videos von Fuߟballspielerinnen gezeigt. Diese dauern ca. 15 Sekunden.
^^Nach jedem Video bitten wir Dich, die gezeigte Person bezüglich verschiedener Eigenschaften einzuschätzen.
^^Bei der Beantwortung der Fragen ist es wichtig, dass Du mÃöglichst ehrlich antwortest. Es gibt keine richtigen oder falschen Antworten.
</page>

<page instructions2>
^Abschlieߟend wirst Du um Angaben zu Deiner Person und zu Deinem sportlichen Hintergrund gebeten.
^Zur Beantwortung aller Fragen wirst Du ca. 15 Minuten benötigen.
^^Alle Daten werden selbstverständlich anonymisiert ausgewertet! Du kannst die Studie jederzeit abbrechen.
^^Bei Fragen kannst du dich gerne an die Versuchsleitung wenden.
</page>

<page end>
^^^^^^^ Vielen Dank für Deine Teilnahme.
</page>

<instruct>
/ windowsize = (80%, 80%)
/ inputdevice = mouse
/ nextlabel = "Weiter"
/ prevlabel = "Zurück"
/ lastlabel = "Start"
</instruct>

***** Experiment und Data *****

<expt pretest>
/ preinstructions = (introduction, instructions1, instructions2)
/ blocks = [1-12=noreplace(01.1D_survey, 02.1D_survey, 03.1D_survey, 04.1D_survey, 05.1D_survey, 06.1D_survey, 07.1D_survey, 08.1D_survey, 09.1D_survey, 10.1D_survey, 11.1D_survey, 12.1D_survey,
01.1U_survey, 02.1U_survey, 03.1U_survey, 04.1U_survey, 05.1U_survey, 06.1U_survey, 07.1U_survey, 08.1U_survey, 09.1U_survey, 10.1U_survey, 11.1U_survey, 12.1U_survey); 13==demographics_sports]
/ postinstructions = (end)


Thanks and kind regards,
Erthos
By Dave - 6/23/2016

You need only two <video> elements:

One for the "dominant" items (D), one for the "submissive" items (U). You then select from those using a <list>.

Basic example using <text> elements (it works the same w/ <video>s):

<block someblock>
/ trials = [1-12 = noreplace(d_trial, u_trial)]
</block>

<trial d_trial>
/ stimulusframes = [1=d_stim]
/ validresponse = (57)
/ branch = [surveypage.assurance]
</trial>

<trial u_trial>
/ stimulusframes = [1=u_stim]
/ validresponse = (57)
/ branch = [surveypage.assurance]
</trial>

<list allitems>
/ poolsize = 12
</list>

<text d_stim>
/ items = d_items
/ select = list.allitems.nextindex
</text>

<text u_stim>
/ items = u_items
/ select = list.allitems.nextindex
</text>

<item d_items>
/ 1 = "Dominant 1"
/ 2 = "Dominant 2"
/ 3 = "Dominant 3"
/ 4 = "Dominant 4"
/ 5 = "Dominant 5"
/ 6 = "Dominant 6"
/ 7 = "Dominant 7"
/ 8 = "Dominant 8"
/ 9 = "Dominant 9"
/ 10 = "Dominant 10"
/ 11 = "Dominant 11"
/ 12 = "Dominant 12"
</item>

<item u_items>
/ 1 = "Submissive 1"
/ 2 = "Submissive 2"
/ 3 = "Submissive 3"
/ 4 = "Submissive 4"
/ 5 = "Submissive 5"
/ 6 = "Submissive 6"
/ 7 = "Submissive 7"
/ 8 = "Submissive 8"
/ 9 = "Submissive 9"
/ 10 = "Submissive 10"
/ 11 = "Submissive 11"
/ 12 = "Submissive 12"
</item>

<surveypage assurance>
/ caption = "your assurance questions go here"
</surveypage>

By Dave - 6/23/2016

As for the 2nd question: You need to store the images corresponding to the displayed video somewhere (an empty <item> element, or store the item numbers in a <list>) at runtime. You can find numerous examples of that on the forums, e.g.

https://www.millisecond.com/forums/FindPost4572.aspx

or

https://www.millisecond.com/forums/FindPost16277.aspx

or

https://www.millisecond.com/forums/FindPost13295.aspx

or

https://www.millisecond.com/forums/FindPost13410.aspx

In your case, I'd suggest you set up two <list> elements, and store the item number of the displayed video in the applicable <list> (D or U) via /ontrialend in <trial d_trial> and <trial u_trial> respectively.

Use those lists to select from your D & U <picture> elements later on.

By Erthos - 6/26/2016

Hey Dave,
thanks for your help!
Your first solution worked quite well. But how do i ensure, that half of the videos (six) are showing a dominant player and the other half showing a submissive player?
And if i use only two <video> elements the data table does not display the response on the assurance questions dependent on the video number.
The assurance question must be related to each video, for what reason i used a block for every package of video and question.
Is it possible to combine these options?

And i'm still struggling with your second recommendation.
I tried my best on using <list> elements, but i'm not quite sure it'll work as proposed. Maybe you could check my following script.

In case my explanation of the study design wasn't reasonable:
Participants should see 12 videos of footballplayers in random order and answer questions referring to the videos. I've got videos with 12 players, each of them standing either dominant or submissive, 24 in total. But every participant should see one player in just one way, dominant OR submissive. I need to know every answer according to the single video played, not according to the dominant or submissive condition or else. After participants watched all videos, they should see pictures of all the players they already saw (in the respective dominant or submissive way), if possible on one page. Then they should choose 6 of the pictures (not sure how to include this part either way) to choose 'the players for their team'. In the end i need to know which picture/player they chose and weather it's a dominant or submissive picture.

New script:

***** Defaults *****

<defaults>
/ screencolor = (255, 255, 255)
/ fontstyle = ("Verdana", 20pt)
</defaults>

***** Videos und Items *****

<list allvideos>
/ poolsize = 12
</list>

<item dominant_vid>
/ 1 = "1.1D.mp4"
/ 2 = "2.1D.mp4"
/ 3 = "3.1D.mp4"
/ 4 = "4.1D.mp4"
/ 5 = "5.1D.mp4"
/ 6 = "6.1D.mp4"
/ 7 = "7.1D.mp4"
/ 8 = "8.1D.mp4"
/ 9 = "9.1D.mp4"
/ 10 = "10.1D.mp4"
/ 11 = "11.1D.mp4"
/ 12 = "12.1D.mp4"
</item>

<item submissive_vid>
/ 1 = "1.1U.mp4"
/ 2 = "2.1U.mp4"
/ 3 = "3.1U.mp4"
/ 4 = "4.1U.mp4"
/ 5 = "5.1U.mp4"
/ 6 = "6.1U.mp4"
/ 7 = "7.1U.mp4"
/ 8 = "8.1U.mp4"
/ 9 = "9.1U.mp4"
/ 10 = "10.1U.mp4"
/ 11 = "11.1U.mp4"
/ 12 = "12.1U.mp4"
</item>

<video dom_vid>
/ items = dominant_vid
/ size = (90%, 90%)
/ select = list.allvideos.nextindex
</video>

<video sub_vid>
/ items = submissive_vid
/ size = (90%, 90%)
/ select = list.allvideos.nextindex
</video>

<list dom_pictures>
/ poolsize = 6
</list>

<list sub_pictures>
/ poolsize = 6
</list>

<item dominant_pic>
/ 1 = "Pic1.1D.jpg"
/ 2 = "Pic2.1D.jpg"
/ 3 = "Pic3.1D.jpg"
/ 4 = "Pic4.1D.jpg"
/ 5 = "Pic5.1D.jpg"
/ 6 = "Pic6.1D.jpg"
/ 7 = "Pic7.1D.jpg"
/ 8 = "Pic8.1D.jpg"
/ 9 = "Pic9.1D.jpg"
/ 10 = "Pic10.1D.jpg"
/ 11 = "Pic11.1D.jpg"
/ 12 = "Pic12.1D.jpg"
</item>

<item submissive_pic>
/ 1 = "Pic1.1U.jpg"
/ 2 = "Pic2.1U.jpg"
/ 3 = "Pic3.1U.jpg"
/ 4 = "Pic4.1U.jpg"
/ 5 = "Pic5.1U.jpg"
/ 6 = "Pic6.1U.jpg"
/ 7 = "Pic7.1U.jpg"
/ 8 = "Pic8.1U.jpg"
/ 9 = "Pic9.1U.jpg"
/ 10 = "Pic10.1U.jpg"
/ 11 = "Pic11.1U.jpg"
/ 12 = "Pic12.1U.jpg"
</item>

<picture dom_pic>
/ items = dominant_pic
/ select = list.dom_pictures.currentindex
/ size = (90%, 90%)
</picture>

<picture sub_pic>
/ items = submissive_pic
/ select = list.sub_pictures.currentindex
/ size = (90%, 90%)
</picture>

***** Slider und Radiobuttons *****

<slider ownteam>
/ caption = "...diese Spielerin in den Mannschaftskader deines eigenen Teams berufen wird?
"
/ labels = ("Überhaupt nicht zuversichtlich", "Mittelmäßig zuversichtlich","Sehr zuversichtlich")
/ range = (0, 100)
/ increment = 10
/ slidersize = (60%, 5%)
/ showticks = true
/ showtooltips = true
/ required = true
</slider>

<slider oppteam>
/ caption = "...diese Spielerin beim Gegner spielt?
"
/ labels = ("Überhaupt nicht zuversichtlich", "Mittelmäßig zuversichtlich","Sehr zuversichtlich")
/ range = (0, 100)
/ increment = 10
/ slidersize = (60%, 5%)
/ showticks = true
/ showtooltips = true
/ required = true
</slider>

***** Trials und Surveypages *****

<trial dom_trial>
/ stimulusframes = [1=dom_vid]
/ timeout = (15000)
/ branch = [surveypage.assurance]
/ ontrialend = [list.dom_pictures.currentindex]
</trial>

<trial sub_trial>
/ stimulusframes = [1=sub_vid]
/ timeout = (15000)
/ branch = [surveypage.assurance]
/ ontrialend = [list.sub_pictures.currentindex]
</trial>

<trial pic_trial>
/ stimulusframes = [1=dom_pic, sub_pic]
/ inputdevice = mouse
/ timeout = 5000
</trial>

<surveypage assurance>
/ caption = "Wie zuversichtlich bist du, dass du mit deinem Team das Aufstiegsspiel gewinnst, wenn..."
/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)
/ showpagenumbers = false
/ showquestionnumbers = true
/ itemfontstyle = ("Verdana", -14, false, false, false, false, 5, 0)
/ questions = [1=ownteam; 2=oppteam]
/ finishlabel = "Weiter"
/ nextbuttonposition = (90%, 90%)
</surveypage>

<surveypage demographics_sports1>
/ caption = "Persönliche Angaben:"
/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)
/ showpagenumbers = false
/ itemfontstyle = ("Verdana", -12, false, false, false, false, 5, 0)
/ questions = [1=age; 2=sex; 3=teamsports; 4=experience1; 5=experience2]
/ nextlabel = "Weiter"
/ finishlabel = "Beenden"
/ nextbuttonposition = (90%, 90%)
</surveypage>

<surveypage demographics_sports2>
/ caption = "Persönliche Angaben:"
/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)
/ showpagenumbers = false
/ itemfontstyle = ("Verdana", -12, false, false, false, false, 5, 0)
/ questions = [1=captain; 2=situation; 3=sports]
/ backlabel = "Zurück"
/ finishlabel = "Beenden"
/ nextbuttonposition = (90%, 90%)
/ backbuttonposition = (10%, 90%)
</surveypage>

***** Demographics und Sports *****

<textbox age>
/ caption = "Alter"
/ range = (7,110)
</textbox>

<radiobuttons sex>
/ caption = "Geschlecht"
/ options = ("Männlich", "Weiblich")
/ optionvalues = ("0", "1")
</radiobuttons>

<radiobuttons teamsports>
/ caption = "Übst Du momentan eine Mannschaftssportart im Verein aus oder hast Du schon einmal eine Mannschaftssportart im Verein ausgeübt?"
/ options = ("Ja", "Nein")
/ optionvalues = ("1", "2")
</radiobuttons>

<textbox experience1>
/ caption = "Wenn ja, wie lange (in Jahren) hast du diese Mannschaftssportart bereits im Verein ausgeübt?"
/ range = (0, 50)
/ required = false
</textbox>

<textbox experience2>
/ caption = "Wenn ja, was war dein bislang höchstes Leistungsniveau (z.B. vierthöchste Liga)?"
/ required = false
</textbox>

<radiobuttons captain>
/ caption = "Wenn ja, warst du schon einmal Kapitän oder im Mannschaftsrat eines Teams?"
/ options = ("Ja", "Nein")
/ optionvalues = ("1", "2")
/ required = false
</radiobuttons>

<radiobuttons situation>
/ caption = "Wenn ja, warst du schon einmal in einer wie in der Studie beschriebenen oder ähnlichen Situation (z.B. Relegationsspiel um Auf-/Abstieg, Entscheidungsspiel um die Meisterschaft)?"
/ options = ("Ja", "Nein")
/ optionvalues = ("1", "2")
/ required = false
</radiobuttons>

<checkboxes sports>
/ caption = "Ich betreibe meinen Sport..."
/ options = ("hobbymäßig", "leistungsmäßig", "beruflich")
/ optionvalues = ("1", "2", "3")
/ required = false
</checkboxes>

***** Blocks und Survey *****

<block vid_survey>
/ trials = [1-12 = noreplace(dom_trial, sub_trial); 13=pic_trial]
</block>

<survey demographics_sports>
/ pages = [1=demographics_sports1; 2=demographics_sports2]
</survey>

***** Text und Instruktionen *****

<page introduction>
^Körpersprache im Teamsport
^^^^Liebe Teilnehmerin,
^^vielen Dank für für die Bereitschaft, an dieser Untersuchung teilzunehmen!
^^In dieser Studie geht es um die Wahrnehmung verschiedener Sportler und die Einschätzung ihres Potenzials.
</page>

<page instructions1>
^Im Folgenden werden dir Videos von Sportlerinnen gezeigt und anschliessend werden dir Fragen dazu gestellt.
^^Dieser erste Teil wird ca. 20 min dauern. Beantworte die Fragen bitte ehrlich. Es gibt keine richtigen oder falschen Antworten.
^^In einem zweiten Teil bitten wir dich um einige Angaben zu deiner Person. Dies wird ca. 2-3min dauern.

</page>

<page instructions2>
^Die Auswertung der Daten erfolgt selbstverständlich anonym.
^Du darfst die Studie jederzeit ohne die Angabe von Gründen und ohne dass dies negative Konsequenzen für dich hat, abbrechen.
^^Zudem hast du das Recht, nach Beendigung der Studie die Löschung deiner personenbezogenen Daten einzufordern.
</page>

<page instructions3>
^Du wirst gleich die konkrete Arbeitsanweisung erhalten. Zuvor bitten wir dich jedoch, die Einverständniserklärung, die neben dir liegt, auszufüllen und zu unterschreiben.
</page>

<page instructions4>
^Versetze dich bitte in folgende Situation:
^Du spielst Fussball im Verein und du hast dich mit deiner Mannschaft für das Entscheidungsspiel um den Aufstieg gegen euren langjährigen Ligarivalen qualifiziert, der nach dem letzten Spieltag punktgleich mit deinem Team ist.
^Kommende Woche steht also das wichtigste Spiel der Saison an.
</page>

<page instructions5>
^Als Kapitän der Mannschaft bist du der verlängerte Arm des Trainers.
^Deswegen bittet dich dein Trainer vor dem Aufstiegsspiel um Hilfe bei der Entscheidung, welche Spieler in den Kader berufen werden.
^Ein Teil dieser Spieler steht bereits fest – es ist der Grossteil des Kaders, mit dem ihr in dieser Saison erfolgreich gewesen seid.
</page>

<page instructions6>
^Zusätzlich tritt bei der Kadernominierung eine seit dieser Saison neue Regelung in Kraft:
Diese besagt, dass Spieler, die für die kommende Saison möglicherweise verpflichtet werden sollen, bereits im Aufstiegsspiel auflaufen müssen, um in der nächsten Saison spielberechtigt zu sein.
</page>

<page instructions7>
^Daher liegt deinem Verein ein Pool von Spielern vor, die als Wechselkandidaten in Frage kommen.
^Es ist davon auszugehen, dass diese Spieler in der kommenden Saison entweder bei euch oder bei eurem Aufstiegskonkurrenten spielen werden.
Ihr sucht beide nach möglichst guten Einzelspielern, die in entscheidenden Momenten Verantwortung übernehmen können.
</page>

<page instructions8>
^Im Folgenden werden dir kurze Videoportraits der in Frage kommenden Spieler gezeigt.
^Deine Aufgabe ist es, anhand dieser Videos einzuschätzen, inwieweit dieser Spieler beim anstehenden Aufstiegsspiel eine Verstärkung für euer Team sein kann.
Dabei sollst du jeweils einmal aus Gegnerperspektive (was wäre, wenn dieser Spieler im Aufstiegsspiel beim Gegner spielt und einmal aus Mitspielersicht (Was wäre, wenn dieser Spieler beim Aufstiegsspiel in deinem Team spielen würde) entscheiden.
</page>

<page instructions9>
^Die konkrete Fragestellung siehst du im Anschluss an jedes Video.
^Zu Beginn wird dir zudem ein Beispielvideo gezeigt.
^^^Bei Fragen kannst du dich jederzeit an die Versuchsleitung wenden.
</page>

<page end>
^^^^^^^ Vielen Dank für Deine Teilnahme.
</page>

<instruct>
/ windowsize = (80%, 80%)
/ inputdevice = mouse
/ nextlabel = "Weiter"
/ prevlabel = "Zurück"
/ lastlabel = "Start"
</instruct>

***** Experiment *****

<expt test1>
/ preinstructions = (introduction, instructions1, instructions2, instructions3, instructions4, instructions5, instructions6, instructions7, instructions8, instructions9)
/ blocks = [1-13=vid_survey; 14=demographics_sports]
/ postinstructions = (end)


Thanks and kind regards,
Erthos
By Dave - 6/27/2016

> But how do i ensure, that half of the videos (six) are showing a dominant player and the other half showing a submissive player?

The script already does that. There are 6 D trials and 6 U trials. Items are selected via a single <list>. I.e., if item #1 gets selected in a D-trial, the corresponding U-item #1 cannot be selected in a U-trial anymore. Run the script I posted and see for yourself.

> And if i use only two <video> elements the data table does not display the response on the assurance questions dependent on the
> video number.

Not sure what you mean here. The trialcode column tells you whether a D or U trial was run. The stimulusitem and stimulusnumber columns tell you which video was displayed. There is no fundamental difference to what your initial script would have recorded as far as I can determine.

> The assurance question must be related to each video, for what reason i used a block for every package of video and question.
> Is it possible to combine these options?

You can select the question(s) depending on the selected video item. You'll find this covered in the "How to present stimulus pairs" topic in the documentation's How-to section. You could also /branch to different <surveypage>s depending on the selected / displayed video item.

Moreover, there is no indication of the assurance question(s) being specific to the video in any way in your original script. You show the exact same assurance <surveypage> in each <block>.

<expt test1>
...
/ blocks = [1-13=vid_survey; 14=demographics_sports]
</expt>

I don't understand why you would run <block vid_survey> 13 times. A *single* run of that <block> already presents all 12 videos etc.

<block vid_survey>
/ trials = [1-12 = noreplace(dom_trial, sub_trial); 13=pic_trial]
</block>

The purpose of "pic_trial" is completely unclear to me.

<picture dom_pic>
/ items = dominant_pic
/ select = list.dom_pictures.currentindex
/ size = (90%, 90%)
</picture>

Currentindex is not what you want. You want nextvalue.

<trial sub_trial>
/ stimulusframes = [1=sub_vid]
/ timeout = (15000)
/ branch = [surveypage.assurance]
/ ontrialend = [list.sub_pictures.currentindex]
</trial>

is not how you add an item number to a <list>. You want /ontrialend = [list.sub_pictures.appenditem(video.sub_vid.currentindex)]

<list sub_pictures>
/ poolsize = 6
</list>

You don't want or need to define a poolsize. Since you ultimately want to display all images on a single screen, you want /selectionrate always in those the dom and sub <list>s. You also need to define six D <picture> elements and six U <picture> elements, all sampling items via the appropriate sub vs dom <list>. Otherwise you would not be able to display all 12 images on a single screen or page.

> After participants watched all videos, they should see pictures of all the players they already saw (in the respective dominant or
> submissive way), if possible on one page. Then they should choose 6 of the pictures (not sure how to include this part either way) to
> choose 'the players for their team.'

You'll need to do something along the lines of https://www.millisecond.com/download/library/v3/selectitems/selectitems.zip