Problem with counter feature


Author
Message
Keith Leavitt
Keith Leavitt
Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)
Group: Forum Members
Posts: 27, Visits: 1

Hi All,


I'm having a problem with a "counter" in a script that worked great in a slightly different version. The task is roughly modeled after the Cyberball task, but designed to look at predictors of cheating/enabling cheating within a 'group' context.


In my previous (functional) version, participants took a couple surveys, selected useritems (an avatar and a handle), and jumped in to the game. Each turn consists of generating an answer, the answer being displayed on the screen, choosing a player to pass the next turn to, and the animation for the ball-pass. Participants believe that they are "racing the clock", but after the actual subject takes 12 turns, they get an "out of time" countdown.


In the new version, I added a block in front of the "game" block, in which the pattern of the first five passes is scripted (so that the participant sees the cheating player first being ostracized for cheating). This pre-block seemlessly transitions into the normal game play, where the participant passes a turn to whomever they wish, and the electronic confederates pass at random.


However, when testing this, the counter for "score" doesn't seem to work now; the game goes on for an infinite amount of turns.


Here are the relevant script items for the counter ("turns" is an unrelated value used elsewhere in the study):



<block game>


/ trials = [1= 1to2]


/ stop= [values.score==12]


</block>



<values>


/ score = 0


/ turns = 0


</values>



<trial pass>


/stimulusframes= [1=player1, player2, player3, player4, throw, player1label, player2label, player3label, player4label, teamnumber, teamnumber2]


/ validresponse = (player1, player3, player4)


/ontrialend=[values.score = values.score + 1]


/ branch = [if (trial.pass.response == "player1") trial.2to1]


/ branch = [if (trial.pass.response == "player3") trial.2to3]


/ branch = [if (trial.pass.response == "player4") trial.2to4]


</trial>






I'm attaching the actual file here as well. It's a pretty huge script, but the relevant parts are labeled under "***************actual game trials*******************".


Thanks in advance; I've been beating my head against the wall all morning.


 


Attachments
Experiment_troubleshoot.exp (406 views, 55.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