Tips & Tricks – Custom DoT Formulas – 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.

Sometimes we want deal damage over time status effects to deal a different kind of damage other than percentile damage. Sometimes, a type of damage that is based off the original caster’s stats. Here’s how you can do it in RPG Maker MV!

You can grab the copy/paste code here: Insert the code below into your custom DoT state’s notebox. Change the values in red to reflect the settings of your game.

<Custom Apply Effect>
// Calculate the damage to be dealt by the formula.
target._mercuryPoison = Math.ceil(origin.mat * 0.50);
</Custom Apply Effect>

<Custom Remove Effect>
// Remove the damage effect.
target._mercuryPoison = undefined;
</Custom Remove Effect>

<Custom Regenerate Effect>
// Default the DoT formula.
target._mercuryPoison = target._mercuryPoison || Math.ceil(origin.mat * 0.50);
// Play an animation on the target.
target.startAnimation(12);
// Reduce the target's HP
target.gainHp(-target._mercuryPoison);
// Start the damage popup.
target.startDamagePopup();
// Check if the target is dead.
if (target.isDead()) {
  // Make the target collapse.
  target.performCollapse();
}
// Clear the target's results.
target.clearResult();
</Custom Regenerate Effect>

Enjoy!

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