Tips & Tricks – ManaBank (Legacy of Kain) – RPG Maker MV

Yanfly Engine Plugins is a plugin library made for RPG Maker MV, a wonderful piece of software to help you make that role playing game of your dreams. You can find out more about RPG Maker MV here.

ManaBank is a skill from the Legacy of Kain. While it’s active, the user has infinite mana. Once it expires, the user is dropped to 0 mana and cannot regenerate mana for a few turns. Here’s how to replicate the effect in RPG Maker MV!

You can grab the copy/paste code here: 

Insert the following code into your ManaBank state’s notebox. Change the values in red to fit your game’s settings.

<Custom Action End Effect>
// Play an animation to indicate Mana Bank's effect has triggered.
user.startAnimation(45);
// User gains difference between max MP and current MP.
user.gainMp(user.mmp - user.mp);
// Start the damage popup.
user.startDamagePopup();
// Clear the user's results.
user.clearResult();
</Custom Action End Effect>

<Custom Leave Effect>
// Get the Mana Nerf ID.
var ManaNerfID = 188;
// Add the state to the user.
user.addState(ManaNerfID);
// Set user's MP to 0.
user.setMp(0);
// Show an animation.
user.startAnimation(54);
</Custom Leave Effect>

Insert the following code into your ManaNerf state’s notebox. Change the values in red to fit your game’s settings.

<mrg Rate: 0%>

Enjoy!

Please wait while you are redirected...or Click Here if you do not want to wait.