Tips & Tricks – Attunement (Final Fantasy Record Keeper) – 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.

Attunement is a passive effect from Final Fantasy Record Keeper. When the passive’s user manages to hit an elemental weakness for an enemy, the user will deal additional bonus damage on top of the already exploited weakness bonus, making striking weaknesses hurt even more! Here’s how to make the effect in RPG Maker MV!

You can grab the copy/paste code here: 


Place the following Lunatic Mode code into the passive state’s notebox. Change the values in red to reflect the game’s settings.

<Custom Confirm Effect>
// Check if the action deals HP damage
if (this.isHpEffect() && value > 0) {
  // Get this action's elements
  var elements = this.getItemElements();
  // Loop through each of the elements
  for (var i = 0; i < elements.length; ++i) {
    // Get the currently looped element
    var elementId = elements[i];
    // Check if the target is weak to the element
    if (target.elementRate(elementId) > 1.00) {
      // Set the bonus damage rate to be dealt
      var rate = 1.30;
      // Calculate the new damage value
      value = Math.ceil(value * rate);
      // Break the loop
      break;
    }
  }
}
</Custom Confirm Effect>

Enjoy!

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