Hi. I downloaded this task from Pavlovia. I want to make another task where participants only select from A → B → C → etc., but I cannot find where in the code the stimuli A, B, C, 1, 2, 3, etc. is defined. I see that it is labeled trialTarget, but I do not see where I can edit the A, B, C, 1, 2, 3. Please help. Thank you in advance.
Is there an associated spreadsheet?
There is no associated spreadsheet. Do you need more information to help me with this? I’d be happy to provide that.
Please could you link to the original repository or upload a screenshot of the flow and loop definition?
Here is the original repository: smcl / TrailMaking · GitLab
Thank you so much in advance
Here’s the code you need to change in Begin Routine of Target Code
if (index % 2 == 0) {
trialTargetLabels[index].text = parseInt(index, 10)/2 + 1;
} else {
trialTargetLabels[index].text = alphaID.next();
}
In English this means:
If the index is even, the label should be a number
otherwise add the next letter
However, since this has been written in JS code directly rather than translated Python, then there is a lot of code I am unfamiliar with.
Thank you so much, I will try that.
I made sure that the code that defined the stimulus was in Python. I found this out by deleting all of the JS in the Begin Routine tab and it still ran with just the Python.