Mouse Trap - Assigning buttons to variables
I am quite new to OpenSesame and programming in general so this may be a dumb question.
I am presenting three pictures and want participants to click on of these three. If it is incorrect they will be shown an error screen and will be shown the images again. If they are correct I want to show a correct screen and they can move on to the next part of the experiment.
I have created graphics of the three images and what I want them to look like and insertedthese as an image in sketchpad. I decided to use MouseTrap plugin as it looked like a good option for defining areas of the pictures.
Following this tutorial https://github.com/PascalKieslich/mousetrap-os/blob/master/plugins/mousetrap_response/mousetrap_response.md I have drawn borders around my buttons using rect elements. The next part of the tutorial says "Insert the button labels using
textline elements. You may either use a constant string or an experimental variable (e.g., '[CategoryLeft]')." I am not exactly sure how to do this...its probably really obvious but in the sketchpad do I go into the script and define them there (if so what would that look like) or would I put the whole thing into a loop and define variable there or both?
Sorry if this is really obvious.
Thanks in advance.