Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Can a survey response be used to trigger display logic in a trial or...
Can a survey response be used to trigger display logic in a trial or block
Post Reply
Like
79
Can a survey response be used to trigger display logic in a trial or...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Marguerite
Marguerite
posted 7 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 11,
Visits: 21
Hello
I'm trying to come up with an interactive "game" where participants are able to vote off other "players". The other players are all pre-recorded, so what I would like is for the video that displays which player gets voted off matches who the participant voted for in a previous round. So in the attached inquisit script, the vote in block8 would determine which video plays in block9.
Is there a way to create if-then statements for the trials or blocks?
Kind Regards
Attachments
golden balls 2017.iqx
(
458 views,
4.00 KB
)
Reply
Like
79
Dave
Dave
posted 7 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
+
x
Marguerite - Friday, November 17, 2017
Hello
I'm trying to come up with an interactive "game" where participants are able to vote off other "players". The other players are all pre-recorded, so what I would like is for the video that displays which player gets voted off matches who the participant voted for in a previous round. So in the attached inquisit script, the vote in block8 would determine which video plays in block9.
Is there a way to create if-then statements for the trials or blocks?
Kind Regards
Sure. You need videos that correspond to all possible vote results. Define those as <video round1votes> items.
<video round1votes>
/ items = ("player1out.mp4", "player2out.mp4", "player3out.mp4", ...)
/ select = values.outvoted
/ playthrough = true
/ position = (50, 50)
</video>
Set up a global variable
<values>
/ outvoted = 1
</values>
and use that variable for the video selection. Finally, set that variable to the proper value depending on the response in the <surveypage>:
<surveypage vote1>
...
/ ontrialend = [ if (checkboxes.pvote1.checked.1 == true) values.outvoted = 1]
/ ontrialend = [ if (checkboxes.pvote1.checked.2 == true) values.outvoted = 2 ]
...
</surveypage>
Reply
Like
73
Marguerite
Marguerite
posted 7 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 11,
Visits: 21
+
x
Dave - Friday, November 17, 2017
+
x
Marguerite - Friday, November 17, 2017
Hello
I'm trying to come up with an interactive "game" where participants are able to vote off other "players". The other players are all pre-recorded, so what I would like is for the video that displays which player gets voted off matches who the participant voted for in a previous round. So in the attached inquisit script, the vote in block8 would determine which video plays in block9.
Is there a way to create if-then statements for the trials or blocks?
Kind Regards
Sure. You need videos that correspond to all possible vote results. Define those as <video round1votes> items.
<video round1votes>
/ items = ("player1out.mp4", "player2out.mp4", "player3out.mp4", ...)
/ select = values.outvoted
/ playthrough = true
/ position = (50, 50)
</video>
Set up a global variable
<values>
/ outvoted = 1
</values>
and use that variable for the video selection. Finally, set that variable to the proper value depending on the response in the <surveypage>:
<surveypage vote1>
...
/ ontrialend = [ if (checkboxes.pvote1.checked.1 == true) values.outvoted = 1]
/ ontrialend = [ if (checkboxes.pvote1.checked.2 == true) values.outvoted = 2 ]
...
</surveypage>
This is great, thank you. I was wondering how we could program a cumulative effect for this.
So if we have 3 rounds, we would want the options revealed in each subsequent round to reflect each of the earlier decisions. Could this be done with something like
<surveypage vote3>
...
/ ontrialend = [ if (checkboxes.pvote1.checked.1 == true) & (checkboxes.pvote2.checked.1 == true) values.outvoted3 = 1]
/ ontrialend = [if (checkboxes.pvote1.checked.1 == true) & (checkboxes.pvote2.checked.2 == true) values.outvoted3 = 2]
...
</surveypage>
Reply
Like
63
Dave
Dave
posted 7 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
+
x
Marguerite - Thursday, November 23, 2017
+
x
Dave - Friday, November 17, 2017
+
x
Marguerite - Friday, November 17, 2017
Hello
I'm trying to come up with an interactive "game" where participants are able to vote off other "players". The other players are all pre-recorded, so what I would like is for the video that displays which player gets voted off matches who the participant voted for in a previous round. So in the attached inquisit script, the vote in block8 would determine which video plays in block9.
Is there a way to create if-then statements for the trials or blocks?
Kind Regards
Sure. You need videos that correspond to all possible vote results. Define those as <video round1votes> items.
<video round1votes>
/ items = ("player1out.mp4", "player2out.mp4", "player3out.mp4", ...)
/ select = values.outvoted
/ playthrough = true
/ position = (50, 50)
</video>
Set up a global variable
<values>
/ outvoted = 1
</values>
and use that variable for the video selection. Finally, set that variable to the proper value depending on the response in the <surveypage>:
<surveypage vote1>
...
/ ontrialend = [ if (checkboxes.pvote1.checked.1 == true) values.outvoted = 1]
/ ontrialend = [ if (checkboxes.pvote1.checked.2 == true) values.outvoted = 2 ]
...
</surveypage>
This is great, thank you. I was wondering how we could program a cumulative effect for this.
So if we have 3 rounds, we would want the options revealed in each subsequent round to reflect each of the earlier decisions. Could this be done with something like
<surveypage vote3>
...
/ ontrialend = [ if (checkboxes.pvote1.checked.1 == true) & (checkboxes.pvote2.checked.1 == true) values.outvoted3 = 1]
/ ontrialend = [if (checkboxes.pvote1.checked.1 == true) & (checkboxes.pvote2.checked.2 == true) values.outvoted3 = 2]
...
</surveypage>
Yes, you can absolutely do this, although I'm not sure why you would need separate variables for each round. You should be able to simply use the same ones (values.outvoted) for each round.
Reply
Like
58
Marguerite
Marguerite
posted 7 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 11,
Visits: 21
+
x
Dave - Thursday, November 23, 2017
+
x
Marguerite - Thursday, November 23, 2017
+
x
Dave - Friday, November 17, 2017
+
x
Marguerite - Friday, November 17, 2017
Hello
I'm trying to come up with an interactive "game" where participants are able to vote off other "players". The other players are all pre-recorded, so what I would like is for the video that displays which player gets voted off matches who the participant voted for in a previous round. So in the attached inquisit script, the vote in block8 would determine which video plays in block9.
Is there a way to create if-then statements for the trials or blocks?
Kind Regards
Sure. You need videos that correspond to all possible vote results. Define those as <video round1votes> items.
<video round1votes>
/ items = ("player1out.mp4", "player2out.mp4", "player3out.mp4", ...)
/ select = values.outvoted
/ playthrough = true
/ position = (50, 50)
</video>
Set up a global variable
<values>
/ outvoted = 1
</values>
and use that variable for the video selection. Finally, set that variable to the proper value depending on the response in the <surveypage>:
<surveypage vote1>
...
/ ontrialend = [ if (checkboxes.pvote1.checked.1 == true) values.outvoted = 1]
/ ontrialend = [ if (checkboxes.pvote1.checked.2 == true) values.outvoted = 2 ]
...
</surveypage>
This is great, thank you. I was wondering how we could program a cumulative effect for this.
So if we have 3 rounds, we would want the options revealed in each subsequent round to reflect each of the earlier decisions. Could this be done with something like
<surveypage vote3>
...
/ ontrialend = [ if (checkboxes.pvote1.checked.1 == true) & (checkboxes.pvote2.checked.1 == true) values.outvoted3 = 1]
/ ontrialend = [if (checkboxes.pvote1.checked.1 == true) & (checkboxes.pvote2.checked.2 == true) values.outvoted3 = 2]
...
</surveypage>
Yes, you can absolutely do this, although I'm not sure why you would need separate variables for each round. You should be able to simply use the same ones (values.outvoted) for each round.
Thanks, very helpful.
Reply
Like
66
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
79
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search