Perfection of the Maestro (MV Plugin Tips & Tricks)

From Yanfly.moe Wiki
Jump to navigation Jump to search

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.


In Everquest 2, the ability Perfection of the Maestro makes it so that when any offensive spell is used against the party, the whole party gets a buff to their magical power. Here’s how we can recreate the effect in RPG Maker MV!

Required Plugins

The following plugin(s) is required to create this Tips & Tricks effect:

For help on how to install plugins, click here.

For help on how to update plugins, click here.

About

This is a Tips & Tricks effect created for RPG Maker MV. Tips & Tricks are not to be confused with plugins. Instead, they are usually customized code created for the sake of producing unique features/effects that do not require an entire plugin to do.

Yanfly Engine Plugins

This Tips & Tricks effect is made possible due to the Yanfly Engine Plugins library.

Click here if you want to help support Team Yanfly on Patreon.

Instructions

Follow video instructions.

You can grab the copy/paste code here:

Insert the following Lunatic Mode code into your aura effect state’s notebox. Change the values to reflect your game’s settings.
<Custom React Effect>
// Check if the maestro effect hasn't occurred and if the action deals magical damage
if (!this._maestrobuffed && this.isMagical() && this.isHpEffect() && value > 0) {
  // Set the maestro effect to have occurred
  this._maestrobuffed = true;
  // Get the target's alive allies
  var members = target.friendsUnit().aliveMembers();
  // Loop through each ally
  for (var i = 0; i < members.length; ++i) {
    // Get the currently looped ally
    var member = members[i];
    // Check if the member exists
    if (member) {
      // Get the paramID for MAT
      var buffId = 4;
      // The number of turns to make the buff last
      var turns = 5;
      // Play an animation on the target
      member.startAnimation(51);
      // Add the buff to the target
      member.addBuff(buffId, turns);
    }
  }
}
</Custom React Effect>

Enjoy!