Tips & Tricks – Auto-Life – 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.

Auto-Life, also known as Reraise, is a status effect in many Final Fantasy games. It will revive a battler the moment the battler dies. This Tips & Tricks video will show you how to accomplish this using Yanfly Engine Plugins and RPG Maker MV!

Get the copy/paste version of the code here: 

Remember to change all of the values in red to fit your game’s settings.

<Category: Bypass Death Removal>

<Custom Deselect Effect>
// Check if the target's HP is 0 or is currently in the death state.
if (target.hp <= 0 || target.isDead()) {
  // Play the auto-life animation on target.
  target.startAnimation(49);
  // Set the amount of HP recovered to 10%.
  var rate = 0.10;
  // Calculate the HP healed.
  var heal = Math.floor(target.mhp * rate);
  // Remove the Auto-Life state.
  target.removeState(stateId);
  // Heal the target.
  target.gainHp(heal);
  // Make the damage popup show for the heal.
  target.startDamagePopup();
  // Clear the target's results.
  target.clearResult();
}
</Custom Deselect Effect>

Happy reraising!

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