MV Using arrays in the Database/Notes

I am attempting to recreate a dnd 5e-like system in MV, and for that I've had to make use of additional variables as stand-ins for the basic ability scores of an actor. As it stands, each character has their own dedicated variable for each score ability score and the modifier, meaning 12 per actor. While this isn't too unreasonable, it would not scale well if I wanted to extend this system to enemies, and it would mean that any skill that can be used by multiple creatures would have to be duplicated for each one.

My plan is to have 12 variables that handle the given score and modifier of *every* actor in the form of an array, and hopefully another 12 for enemies. My issue is I do not know how I would handle retrieving these scores in formulas, for example: finding actor 4's strength modifier so it can be added to a damage roll, or finding the dexterity score of a monster to see if it avoids an effect. What would be the most effective solution for doing this?
I'm confused. Can't you use the basic parameters for Strength, Intelligence, Charisma, Constitution, Dexterity, and Wisdom? And the ability scores are directly derived from those as a simple calculation, so for example if you make attack be Strength, then the strength ability score will be Math.floor(a.atk - 10) / 2.

But, if you do have a variable that contains an array, you can reference an element of the array in a damage formula like this: v[5][12]

That gives you item 12 from the array in variable 5.

I think something like a macro plugin that lets you give a name to common formulas might be a better approach though. Or even defining the scores as extra attributes in the actor.

Original thread: https://forums.rpgmakerweb.com/threads/using-arrays-in-the-database-notes.178839/