Tips & Tricks – Cauterize (World of WarCraft) – 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.

In the World of WarCraft, Cauterize is an effect that will prevent the user from a fatal blow for some time by recovering a percentage of the user’s health and then burning the user over a small period of time. This effect has a cooldown and will not occur again after some turns. Here’s how to recreate it in RPG Maker MV!

You can grab the copy/paste code here: Insert the following code into the Cauterize Passive state. Change the values in red to reflect your game.

<Custom Battle Effect>
// Get the cauterize reraise state ID.
var reraise = 240;
// Add the reraise effect to the user.
user.addState(reraise);
// Set the cooldown to 0.
user._cauterizeCooldown = 0;
</Custom Battle Effect>

<Custom Regenerate Effect>
// Default the cooldown to 0.
user._cauterizeCooldown = user._cauterizeCooldown || 0;
// Check if the cooldown is above 0.
if (user._cauterizeCooldown > 0) {
  // If it is, decrease it by 1.
  user._cauterizeCooldown -= 1;
  // If the cooldown has reached 0...
  if (user._cauterizeCooldown <= 0) {
    // Then get the reraise state.
    var reraise = 240;
    // And apply it to the user.
    user.addState(reraise);
  }
}
</Custom Regenerate Effect>

Insert the following code into the Cauterize Reraise state. Change the values in red to reflect your game.

<Category: Bypass Death Removal>

<Custom Deselect Effect>
// Check if the target is at 0 HP or is dead.
if (target.hp <= 0 || target.isDead()) {
  // Start the reraise animation.
  target.startAnimation(49);
  // The amount of HP% to recover for the target.
  var rate = 0.35;
  // Calculate the amount to heal.
  var heal = Math.floor(target.mhp * rate);
  // Remove reraise from the target.
  target.removeState(stateId);
  // Heal the target.
  target.gainHp(heal);
  // Display a damage popup.
  target.startDamagePopup();
  // Clear the results.
  target.clearResult();
  // Get the burning state's ID.
  var burningState = 241;
  // Add the burning state to the target.
  target.addState(burningState);
  // Set the reraise cooldown to 10 turns.
  target._cauterizeCooldown = 10;
}
</Custom Deselect Effect>

Insert the following code into the Cauterize Burning state. Change the values in red to reflect your game.

<Custom Regenerate Effect>
// Play an animation on the user whenever burning effect occurs.
user.startAnimation(13);
</Custom Regenerate Effect>

Enjoy!


These Tips & Tricks ideas are made possible thanks to our creative patrons on Patreon! The majority of our Tips & Tricks ideas are placed within the Patreon-exclusive Sample Project for quick and easy access! If you’d like to make a Tips & Tricks suggestion, Yanfly’s Patreon-based Suggestion Box a visit here:

Happy RPG Making!

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