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.
For a short duration, whenever target ally spends MP, some of their health is replenished. The more MP spent increases the amount of health replenished. This effect in Everquest 2 can now be remade in RPG Maker MV!
You can grab the copy/paste code here:
Place the following code in your Reverence state’s notebox. Change the values in red to fit your game’s settings.
<Custom Action Start Effect>
// Get the user's current HP.
user._reverenceMp = user.mp;
</Custom Action Start Effect>
<Custom Initiate Effect>
// Check if the stored MP value exists.
if (user._reverenceMp !== undefined) {
// If it does, calculate the difference between the user's initial MP and the user's current MP after the cost.
var difference = user._reverenceMp - user.mp;
// Check if the difference is greater than zero...
if (difference > 0) {
// If it is, calculate the amount of HP healed.
var hp = Math.ceil(difference * 20.00);
// Make the user gain that HP.
user.gainHp(hp);
// Play a damage popup.
user.startDamagePopup();
// Clear the damage results.
user.clearResult();
}
user._reverenceMp = undefined;
}
</Custom Initiate Effect>
Happy self sustaining!
Please wait while you are redirected...or Click Here if you do not want to wait.