MP Cost as a percentage of user's MaxMP

Hello there.

Is there a way to make the MP cost of a skill not a fixed number, but a %MaxMP ?

For instance, I need my skill to cost 15% of user's MaxMP pool, is it possible to accomplish?

Thanks in advance for any help and suggestions!
You can do this with Yanfly skill core. I'm not sure if it's possible, or how, to do this in default engine.
You can do this with Yanfly skill core. I'm not sure if it's possible, or how, to do this in default engine.
Oh yes, thank you! Totally overlooked that one. Appreciate your help!

Original thread: https://forums.rpgmakerweb.com/threads/mp-cost-as-a-percentage-of-users-maxmp.125224/