Millisecond Forums

Cyberball

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

By marjalena - 6/29/2015

Hello everybody

I just always used matlab so I'm very new in Inqusit. I have 2 questions regarding the Cyberball task in Inquisit:
1.: Can I also use the localhost version, as described on the cyberball wiki site, in Inquisit? And if I can not: How can I add a text during the game "You can throw the ball by clicking on the picture of another player" and at the end "thank you for your participation"?
2.: How can I define the triggers for SCR and ECG recordings when I would like to have one at the beginning of the task (trigger1="start game") and at the end of the task?

thank you for your help!!!
best,
marjalena
By Dave - 6/29/2015

Re. #1: The information on that Wiki site has nothing to do with the Inquisit implementation. If you want to run the Inquisit script locally, download it and install Inquisit Lab ( https://www.millisecond.com/download/ ). If you want to run it via the web, you need an Inquisit Web license.
As for changing or adding any text that's displayed: Use Inquisit Lab to modify the script, i.e., change and/or add <text> and <item> elements as needed, have the applicable <trial> element display them.

Re. #2: You need to set up <port> elements in the Inquisit script, configured according to your needs. Set up a <trial> that "displays" the "start" <port> stimulus at the beginning of the game. Do the same for the "end" <port> signal at the end. Sending <port> signals works the same in Inquisit as displaying any other kind of stimulus (<text>, <picture>, <video>, etc.).

Before you delve into the Cyberball script, I'd recommend working through the tutorials in the Inquisit documentation. That'll introduce you to the basics of Inquisit syntax and should help you to make sense of more complex scripts you may want to modify.
By marjalena - 6/29/2015

Thank you very much for the information and fast response. I will try it out...
By sophwatt - 11/19/2024

Hello all.
I have recently used inquisit 7 to create a cyberball game.
Is there anyway to change the color of the avatar itself and not just the avatar label?
I have one other question as well. Where do you look to change the behavior of the cyberguy? As of now, one of the players is hiding the ball when they catch it and the other is holding the ball visibly out infront of their body. How to I ensure the avatar does not hide the ball?

Thank you!
By Dave - 11/19/2024

sophwatt - 11/19/2024
Hello all.
I have recently used inquisit 7 to create a cyberball game.
Is there anyway to change the color of the avatar itself and not just the avatar label?
I have one other question as well. Where do you look to change the behavior of the cyberguy? As of now, one of the players is hiding the ball when they catch it and the other is holding the ball visibly out infront of their body. How to I ensure the avatar does not hide the ball?

Thank you!

> Is there anyway to change the color of the avatar itself and not just the avatar label?

All you can do is replace the avatar images that come with the script with colored ones.

> I have one other question as well. Where do you look to change the behavior of the cyberguy? As of now, one of the players is hiding the ball when they catch it and the other is holding the ball visibly out infront of their body. How to I ensure the avatar does not hide the ball?

This misbehavior is caused by a typo in the script. To fix it, do a case-sensitive search and replace in the script.

Search for: player1state
Replace with: player1State




By sophwatt - 11/19/2024

Dave - 11/19/2024
sophwatt - 11/19/2024
Hello all.
I have recently used inquisit 7 to create a cyberball game.
Is there anyway to change the color of the avatar itself and not just the avatar label?
I have one other question as well. Where do you look to change the behavior of the cyberguy? As of now, one of the players is hiding the ball when they catch it and the other is holding the ball visibly out infront of their body. How to I ensure the avatar does not hide the ball?

Thank you!

> Is there anyway to change the color of the avatar itself and not just the avatar label?

All you can do is replace the avatar images that come with the script with colored ones.

> I have one other question as well. Where do you look to change the behavior of the cyberguy? As of now, one of the players is hiding the ball when they catch it and the other is holding the ball visibly out infront of their body. How to I ensure the avatar does not hide the ball?

This misbehavior is caused by a typo in the script. To fix it, do a case-sensitive search and replace in the script.

Search for: player1state
Replace with: player1State





Thank you so much- this was very helpful!!