Tips & Tricks – EnFire (Final Fantasy 11) – 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.

EnFire is a buff in Final Fantasy 11 that grants its user to temporarily imbue the power of Fire damage into their basic attacks, not as a whole, but as added damage. Here’s how to recreate that in RPG Maker MV!

You can grab the copy/paste code here: Insert the code below into the EnFire state. Change the values in red to reflect the settings for your game.

<Custom Confirm Effect>
if (this.isHpEffect() && this.isAttack() && this.isPhysical()) {
  // Get the element ID.
  var elementId = 7;
  // Set the damage for the effect.
  var baseDamage = 20;
  // Calculate the damage after applying the target's element rate.
  var damage = Math.ceil(target.elementRate(elementId) * baseDamage);
  // Make a copy of the target's results.
  var result = JsonEx.makeDeepCopy(target._result);
  // Clear the result.
  target.clearResult();
  // Play an animation on the target.
  target.startAnimation(130);
  // Deduct HP from the target.
  target.gainHp(-damage);
  // Start the damage popup.
  target.startDamagePopup();
  // Check if the target is dead.
  if (target.isDead()) {
    // 
    target.performCollapse();
  }
  target.clearResult();
  target._result = result;
}
</Custom Confirm Effect>

Enjoy!

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