Tips & Tricks – Stormflurry (World of WarCraft) – 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.

Stormflurry is an effect from the World of Warcraft, which when applied to the user, will give skills a small chance to deal additional damage. And then, that additional damage has a small chance to deal additional damage! Yep, you read that right! Damage that deals damage. Here’s how we can recreate that effect in RPG Maker MV!

You can grab the copy/paste code here: 


Insert the following Lunatic Mode code into your Stormflurry state’s notebox. Change the values in red to reflect your game’s settings.

<Custom Establish Effect>
// Create empty pools for skills and skipp types.
var skills = [];
var skillTypes = [];
// Insert the skills this passive can be used with.
skills.push(681, 689, 697, 705, 713, 719);
// Insert the skill types this passive can be used with.
skillTypes.push(18);
// Check if the action is a skill, the skill pool contain the skill or if the skill type pool contains the skill's type
if (this.isSkill() && (skills.contains(this.item().id)) || skillTypes.contains(this.item().stypeId)) {
  // Check if the target exists and has suffered HP damage
  if (target && target.result() && target.result().hpDamage > 0) {
    // Make a copy of the target's original action results
    var originalResult = JsonEx.makeDeepCopy(target._result);
    // Clear those results
    target.clearResult();
    // Calculate the extra damage
    var extraDmg = Math.ceil(0.40 * originalResult.hpDamage);
    // Calculate the success rate to deal extra damage
    var successRate = 0.20;
    // Make the number of times struck
    var struck = 0;
    // Set the maximum number of times the action can be struck
    var maxHits = 5;
    // Make a loop
    for (;;) {
      // Check if the target is alive and the action has passed the success rate
      if (target.isAlive() && Math.random() < successRate) {
        // Increase the number of times struck by 1
        struck += 1;
        // Make the target receive damage
        target.gainHp(-extraDmg);
        // Show the damage popup
        target.startDamagePopup();
        // Check if the target is dead
        if (target.isDead()) {
          // Make the target collapse
          target.performCollapse();
        }
        // Clear the target's results
        target.clearResult();
        // Check if the number of times struck has hit the maximum
        if (struck >= maxHits) {
          // If it did, break the loop
          break;
        }
      // If the extra damage success rate fails
      } else {
        // Then break the loop
        break;
      }
    }
    // If the number of times struck is greater than 0
    if (struck > 0) {
      // Then play an animation on the target
      target.startAnimation(5);
    }
    // Revert the target's results back to its original results
    target._result = originalResult;
  }
}
</Custom Establish Effect>

Enjoy!

Happy RPG Making!


These plugins and Tips & Tricks ideas are made possible thanks to our creative patrons on Patreon! The majority of our Tips & Tricks, Plugins, and Lunatic Pack ideas are placed within the Patreon-exclusive Sample Project for quick and easy access! If you'd like to make a Plugin Suggestion, Yanfly's Patreon-based Suggestion Box a visit here:


If you have any bugs to report, visit the following link:


If you have any questions about Action Sequences, visit the following link:



Thank you!