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?
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?