using a variable to reference other variables?

Not sure how to ask this, so here's an example.


I have 5 actors so far.     I've set a different variable for each actor.   Now, I want to use these variables in the damage formula of a skill, and this skill will be used by all of the actors.  So I want the damage formula of the skill to include a variable (easy enough), but I want this variable to be based on the individual variables I've set for each actor.   Is it possible to do this?  


I'm guessing I could accomplish this by making 5 different copies of the skill and changing the variable in the formula for each copy, but as I may want to use this same mechanic with lots of skills, I'm wondering if there's a less tedious way.   Thanks in advance
Can you make variable's Id same actor's id ?!


So you can change v[x] to v [a.actorId]
simply place the code for loading a variable's content into the place where you usually place a variables ID.


something like


Variable[Variable[20]]


then the number in variable number twenty will be used to determine which other variable to load from
@mrcopra Oh, v[a.actorid] might work nicely--except that that only allows me to do this for one set of variables.  


@Andar hmm that's useful but i'm not sure how that'd accomplish my goal.  I'd still be stuck with a specific variable rather than the current actor using the skill.
@mrcopra Oh, v[a.actorid] might work nicely--except that that only allows me to do this for one set of variables.  


@Andar hmm that's useful but i'm not sure how that'd accomplish my goal.  I'd still be stuck with a specific variable rather than the current actor using the skill.



how about this 😛


v[a.actorId*10+this._item._itemId]   // for 9 skills


i know its not professional  but maybe will give you idea

Original thread: https://forums.rpgmakerweb.com/threads/using-a-variable-to-reference-other-variables.67698/