MV Shared MP between summon and summoner (SRD Summon Core)

I've been trying to figure this out on my own, but I fear that I'm too inept at programing to do it within a reasonable amount of time.


My goal is too make it so that, when a summon spends or recovers MP, the summoners MP is changed instead.
So, in essence:
  1. Actor 1 (10 MP) summons Actor 3
  2. Actor 3 uses a skill with the cost of 5 MP
  3. Actor 1 now has 5 MP
I understand that it'll probably be easier to have the summon's MP match the summoner's and simply make it invisible to the player, but I haven't been able to achieve that either (though I have managed to hide the MP bar).

I think it's also important to note that I intend on using this with another character (Actor 2), and they will be able to pick from the same list of summons. So Actors 1 & 2 are both capable of summoning Actors 3, 4 ,5, etc.

Any help is appreciated. Cheers!
If you can't figure out anything else, make copies of actors 3,4,5... for both actors 1 and 2. Then use Yanfly to remove MP bar from the summons and put in their skill copies a <Custom Requirement> that actor 1 or 2 MP is above the MP cost of the skill and <Custom Execution> to subtract the amount of MP from actor 1 or 2.

Or maybe it works without all the copies if at the time of summoning you control a variable like Actor 3 summoned by: 1, and then you have conditionals in the notetag codes depending on that variable.
EDIT: And assuming you can't summon multiple copies of same actor.

Original thread: https://forums.rpgmakerweb.com/threads/shared-mp-between-summon-and-summoner-srd-summon-core.176737/