Counterbalancing Correct Key Responses Across Participants

I have built a relatively simple audiovisual experiment (3 types of stimuli, respond to onset with a keyboard response) and I want participants counterbalanced with respect to the key responses. I have three types of stimuli (audio, visual, audiovisual) and three key responses (‘v’, ‘b’, ‘n’).

I want three conditions where each key is assigned to each stimulus type:
1: A - v, V - b, AV - n
2: A - b, V - n, AV - v
3: A - n, V - v, AV - b

Additionally, I would like the conditions to be balanced.

The issue is that I don’t have ‘blocks’ - all trials are in one loop (see below). I will be running this in Pavlovia and recruiting participants through our university’s SONA Portal, meaning I cannot myself enter participant numbers into the opening dialog box. I have seen some solutions uses this experiment info to assign a file, but I don’t know if this is possible, given I am not entering the participant number and the participant completes the study remotely (this is the solution I am referencing: Can I assign response keys differently to participants randomly?)

Thank you and I appreciate any help in resolving this!

Hello SVPark,

you might want to take a look here.

Best wishes Jens