oTree Forum >

Change Number of Rounds on External Condition

#1 by avalos_luis

Hi everyone,

TLDR: How do you manually alter subsession.round_number?

I have been dealing with this problem for a couple days and I can't seem to find a solution.

I have an app that must run for 15 rounds. However, certain players have to do only 9 rounds. 

The players who will only do 9 rounds is determined by a previous interaction, however the information on that interaction is stored on the database and properly retrieved. No problem here.

I have two goals:
1) Give certain players 9 rounds instead of 15
2) Notify the players that they're getting 9 rounds because of a previous interaction.

To solve 1, I figure if there is a way to override subsession.round_number. Such arrangement would help solve 2 easily. Once the player hits round 9, set round_number to 15 and show the last page of the app ("Hey, you only got 9 rounds!"). That last page must show only on round 15 and only to the players who satisfy the condition.

However, if session number cannot be overridden, solving 2 becomes a real headache because there is a page that must be shown in between rounds!

Thank you!

Luis

#2 by Chris_oTree

In round 9, use app_after_this_page to skip the remaining rounds.

#3 by avalos_luis

Thank you Chris, that's some functionality I was not aware of.

Write a reply

Set forum username