Tips & Tricks – Warmog’s Armor

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.

Warmog’s Armor is a piece of armor from the popular game, League of Legends. It provides MaxHP and HP regeneration. However, it has a unique regeneration effect that is only active if the user’s MaxHP is above 3,000 and the user hasn’t taken any damage for an amount of time. Let’s recreate this effect into RPG Maker MV!

You can get the copy and paste version of the code here: Place this inside of the notebox of the Warmog’s Heart state.

<Custom Passive Condition>
// Check if the user's MaxHP is at least 3,000.
condition = user.mhp >= 3000;
</Custom Passive Condition>

<Custom Respond Effect>
// Check if the target took HP damage.
if (target.result().hpDamage > 0) {
  // Reset the number of turns for Warmog's Heart effect.
  target._warmogTurns = 0;
}
</Custom Respond Effect>

<Custom Regenerate Effect>
// Failsafe for Warmog's Heart effect.
user._warmogTurns = user._warmogTurns || 0;
// Increase the number of turns passed for Warmog's Heart effect.
user._warmogTurns += 1;
// Check if the number of turns is at least 3.
if (user._warmogTurns >= 3) {
  // The HP regeneration rate.
  var rate = 0.15;
  // Create the value for HP regenerated.
  var value = Math.ceil(rate * user.mhp);
  // User gains HP amount.
  user.gainHp(value);
}
</Custom Regenerate Effect>

Enjoy those League of Legend items!

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