Hey @jderrfuss, yes sure.
![Screenshot (211)](https://us1.discourse-cdn.com/flex020/uploads/psychopy/original/3X/7/b/7baa3fdada188fa32a3e983e69e6fa721f127350.png)
This is what the participant would see throughout the trial; this is the first routine.
There are 36 grids, and they have been divided on the basis of 3 different colours. Each colour is indicative of the range of rewards a participant would expect to get, on clicking. Eg: if you click on any of the pink grids, you’ll get a random value within the range of 1-10$. Similarly, you’ll get a random value as reward within the range of 7-16$ if you click on the yellow grids and so on.
This would be a timed trial of 3 minutes, so till the time ends, the participant would need to keep clicking and figure out which colour of grids returns the highest rewards to try maximise their total rewards earned, as they would not be informed at the start of the experiment as to which colour of grid would return what reward value.
So, for the reward values for each colour, I made one conditions file with three columns. Each column would have certain number of values from different reward ranges.
Example:
Col1: 1,3,5…
Col2: 7,9,15…
Col3: 15,24,28…
What I want is that if a participant clicks on say any of the yellow grids, a random value from Col1 is generated. Similarly, if a participant clicks on the pink grids, a random value from Col2 would be generated and so on.
I could use three different textboxes and use $Col1, $Col2, etc. for each box, but I only want the relevant reward value to be displayed. By this, I mean that if I click on a yellow grid, I only want to see the textbox linked to Col1, not the other textboxes that have been linked to other columns via $Col2, $Col3. Similarly, if I click on a pink grid, I want to see a random value generated from Col2, and so on. These values would basically be the reward that the participant would get on clicking.
I think another alternative could be that I use a single Textbox and a code component to assure that on clicking only a certain type of grid (eg: any of pink grids), I get random values from a particular column only (random values on each click, from column 2). Similarly, if I click a yellow grid, then I get a random value from Col1 in the same textbox and so on.
I hope I’m clearer now!