Cyberball Script: Showlabel


Author
Message
EAS
EAS
Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)
Group: Forum Members
Posts: 4, Visits: 10
Thank you so much!! Now it works :D

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: 13K, Visits: 104K
<trial start_excl>
/ontrialbegin = [values.player = 1]
/ontrialbegin = [if (values.showpictures == true)
            {    trial.start.insertstimulusframe(picture.player1, 1);
                trial.start.insertstimulusframe(picture.player2, 1);
                trial.start.insertstimulusframe(picture.player3, 1)}]
/ontrialbegin = [if (values.showlabels == true)
            {    trial.start.insertstimulusframe(text.player1label, 1);
                trial.start.insertstimulusframe(text.player2label, 1);
                trial.start.insertstimulusframe(text.player3label, 1)}]
/ontrialend = [trial.start.resetstimulusframes()]
...
</trial>

The logic in your "exclusion" <trial> references and adds the labels etc. to the wrong <trial> -- the *regular* (inclusion) <trial start>. You'll want those injected into trial.start_excl.

Edited 9 Years Ago by Dave
EAS
EAS
Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)Partner Member (534 reputation)
Group: Forum Members
Posts: 4, Visits: 10
Hello,

I want to use the inquisit script for Cyberball (3 players, Inquisit 4) for an experiment in university. For my experiment I need two conditions: exclusion and inclusion condition. The Cyberball script offers only one condition (I decided to name it "inclusion"), so I added the other condition (exclusion) with the help of the groupassignment attribute:

<expt Inclusion>
/ subjects = (1 of 2)
/ groupassignment = random
/ blocks = [1=instructions; 2=game]
/onexptend = [values.completed = 1]
</expt>

<expt Exclusion>
/ subjects = (2 of 2)
/ groupassignment = random
/ blocks = [1=instructions; 2=game_excl]
/onexptend = [values.completed = 1]
</expt>

During the cyberball game the names of the two other "players" and the participant himself are shown, so that the participant can click on these names to decide to whom he/she wants to throw the ball. In the inclusion condition the names are shown, but in the newly created exclusion condition there aren't any names. The value.showlabel is set on true in general, so I don't understand why it doesn't work for the exclusion condition. Can someone help me?

I added my script to this post, maybe it's easier to understand what I mean.

Thanks a lot for your help in advance!!
Alexa

Attachments
3PlayerCyberball_Grundversion2.iqx (238 views, 40.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search