Transfer MP from one character to another

Hey all,
Wondering if there's a way, via plugin or straight in the database, to make a skill that will take MP from the caster and give to another party member. Ideally it would give a percentage rather than a straight number, but I'll take what I can get.
You may find this useful:

Note that function calls like this should not be used in the damage formula if you use the Auto Battle trait anyplace in your game. Instead, you'd use something like Yanfly's Skill Core and put the appropriate function calls in notetags there.
Make the skill call a common event, put this:
1683496627536.png

Note that the MP percentage is put in the script
1683496583763.png

This would transfer MP from one character to another. Though this method would only ever transfer it to the same character. But you didn't specify anything and maybe it helps you find the way to make it do what you want.
Make the skill call a common event, put this:
View attachment 261264
Note that the MP percentage is put in the script
View attachment 261263
This would transfer MP from one character to another. Though this method would only ever transfer it to the same character. But you didn't specify anything and maybe it helps you find the way to make it do what you want.
This might actually be perfect. There's only one character that uses that skill and only one character it can be used on, so I'll try this as I didn't have a lot of luck playing with damage formulas.

EDIT: This does the trick. Just need to tweak the amount of MP in the transfer and I'll be all good. Thanks @SGHarlekin and thanks @ATT_Turan for your input as well!
Closed as Solved.

Original thread: https://forums.rpgmakerweb.com/threads/transfer-mp-from-one-character-to-another.157319/