I've implemented the counter in my script and this now fixes the "repeat" problem. Now when I press repeat it does play the same audio clip.
The problem I have now is that the stimuli are not presented in random order: I copied all of the same counter features that I thought were relevant in the plush script, and what I now get is:
First trial plays the 2nd audio file, 2nd trial plays the 3rd audio file, 3rd trial plays the 4th and so on. My guess is that it's because of the lines:
<values>
/ mastercounter = 1
</values>
and
/ ontrialend = [values.mastercounter = values.mastercounter + 1]
It seems to me that this script is not designed to play stimuli randomly. Maybe I am misunderstanding some part of it?
Also, I didn't understand why this "stop" line is included; seems redundant:
./ trials = [1-90 = myturn1, myturn2, otherturn]
/ stop = [values.mastercounter > 30]