Runic Blade Remade (MV Plugin Tips & Tricks)

From Yanfly.moe Wiki
Revision as of 14:44, 3 July 2019 by Yanfly (talk | contribs) (Created page with "{{Yanfly Tips & Tricks MV |preview = <youtube>https://www.youtube.com/watch?v=-Qfg5nsGC8E</youtube> |desc = As a lot of users were having problems making the original Runic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.


As a lot of users were having problems making the original Runic Blade Tips & Tricks, this verison is remade using the Buffs & States Core for more control and flexibility including better ease of use. Runic Blade is a skill that provides the user with a magical taunt. It will also nullify any magical damage and absorb the skill’s MP cost for the affected user, too.

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.

Warning for RPG Maker MZ Users

Warning.jpg

If you are using RPG Maker MZ and VisuStella MZ, the following code may or MAY NOT work as this Tips & Tricks is made for RPG Maker MV. VisuStella MZ is NOT responsible if this Tips & Trick does not work because the code base for RPG Maker MV and RPG Maker MZ are different and the code base between Yanfly Engine Plugins and VisuStella MZ is even more drastically different.

Instructions

Follow video instructions.

You can get the copy/paste code here:

Magical Taunt version. Absorbs MP.
<Magical Taunt>

<Custom React Effect>
// Check to see if the skill is a magical skill and deals positive HP damage.
if (this.isMagical() && this.isHpEffect() && value > 0) {
  // Change the amount of damage received to 0.
  value = 0;
  // Check to see if the action is a skill.
  if (DataManager.isSkill(this.item())) {
  // If the action is a skill, get the MP cost of the skill.
    var mp = user.skillMpCost(this.item());
    // Recover the MP.
    target.gainMp(mp);
  }
  // Play an animation for the Runic effect.
  target.startAnimation(58);
}
</Custom React Effect>
Physical Taunt version. Absorbs TP.
<Physical Taunt>

<Custom React Effect>
// Check to see if the skill is a magical skill and deals positive HP damage.
if (this.isPhysical() && this.isHpEffect() && value > 0) {
  // Change the amount of damage received to 0.
  value = 0;
  // Check to see if the action is a skill.
  if (DataManager.isSkill(this.item())) {
    // If the action is a skill, get the TP cost of the skill.
    var tp = user.skillTpCost(this.item());
    // Recover the TP.
    target.gainTp(tp);
  }
  // Play an animation for the Runic effect.
  target.startAnimation(58);
}
</Custom React Effect>