Mana Regeneration Script

Hi, I have this yanfly script if I'm not wrong, but I want to use it but it regenerates mana instead of life.

<Regen Animation: 41>

<Regen Formula: a.mdf>

<Regen Element: 1>

<Regen Variance: 25%>
I found the solution, I share it the same, so they stick it in the state and they will earn MP per turn

<Custom Regenerate Effect>

var value = Math.floor (user.mmp * 0.15);
user.gainMp (value);

</ Custom Regenerate Effect>
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/mana-regeneration-script.99693/