(VX Ace) How would I change MP use to take from all actors MP rather than just consuming the actor's own MP?

I am trying to make a system where MP is a shared pool (lets say everyone has 5 MMP, and 5 MP at the start of a fight), and when one character uses a skill for 1MP, everyone's MP is changed now to 4MP (so that even if they are stored seperately, it functions as one shared pool).
What script edits / additions would I need to make for this?
If you wanted to have a singular mana bar for the entire party, you would need a plugin for this, however, if you want to be able to do it just with events, it's pretty easy.

Start off by giving all of your party members 5 MP on their stats screen (which im sure youve done already)

Then in all of your skills, you need to run a common event under the Effects section. This common event would subtract 1 MP from each character in it. You'll need as many common events as you have different mana costs. So if you have abilities that cost 1, 2 or 3, you'd need 3 common events and you just run the appropriate one for each skill. You could probably do it all in 1 common event, but then you're playing with lots of conditional branches.

Looking at it now, in the change MP event, you can even select entire party.

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-how-would-i-change-mp-use-to-take-from-all-actors-mp-rather-than-just-consuming-the-actors-own-mp.161061/