How to have an attack calculate damage by party member's stats?

Okay, so I have a skill type in my game called D. Morph that uses SumRdmDde's summon core, summon replace, and summon images plugin in order to replace the user of the skill with a dragon summon that uses a "Dragon Art." It's heavily inspired by the dragon transformations from Breath of Fire 2, in which you are able to transform into a dragon to use a powerful skill. However, no matter which dragon transformation you used, it will always use up all of your MP and base the damage on that. (outside of the ultimate dragon, who always does the maximum 999 damage) However, since the summon plugin requires the use of another actor (the summon) that replaces the caster, and that the user of the summoning spell and the summon are considered different actors, you can't just simply put something like "a.mmp * 4" as the damage formula because that would base the damage off the caster's (aka the summon's) HP, not the summoner. Is there any way to have a damage formula take into account the current MP of another actor that isn't the summoner? Or, is there a way to base an actor's stats on another actor's current MP? Any help would be appreciated. Thanks.

-KrimsonKatt

(p.s. I just saw the "MMMV Damage Formula - Ideas and Help" thread by @Shaz underneath me making my post. I'm not sure if that page could help me or not, but it has over 1000 replies and i'm not in the mood (or have enough time) to read over 1000 commends to answer my question, so I'm just posting this here. Hope it doesn't get removed lol.)
Sounds like you're looking for $gameActors.actor(x).mmp with x being the actor that you want to reference.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-an-attack-calculate-damage-by-party-members-stats.119212/