Reference variables within variable names?

For the game I’m working on I’ve created a modular function, which should add a base number to a variable to find the desired coordinates.
I have sequencially named variables (modx1,modx2, ect) which I want to reference an independent variable to dictate which it uses- something like “modx[i]”.

I know you can reference variables within strings using curly brackets{}, but is there any way to reference a variable within a variable name?

As far as I know, this isn’t possible. You can build object names (e.g. play "{songName}-{songVersion}") but not PulpScript variables.