oTree Forum >

Assigning role through oTree Studio

#1 by EconMatics (edited )

I have a two-person game. One is informed party and the other is uninformed party. Therefore, each group of my game contains two roles. In the document, it is said that we can assign role by setting the Constants. But in oTree studio, the Constants part does not have the function of assigning roles. How can I assign roles in oTree studio?Thanks a lot!

#2 by Chris_oTree

It's described here: https://otree.readthedocs.io/en/latest/multiplayer/groups.html#roles

Is this not working for you? Can you show the output or screenshot indicating that players are not correctly being assigned to roles?

#3 by EconMatics

Thanks, it is solved by modifying _ini_.py from code editor. I am curious how to do it directly through our studio.

#4 by Chris_oTree

It's the same in oTree Studio. On the sidebar, there is the section for Constants. In that section, you define those role constants.

Write a reply

Set forum username