Tips & Tricks – Adapting Armor – 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.

The Adapting Armor is a neat piece of armor. When the user takes damage from an elemental attack, the user will gain a temporary buff that grants a small resistance to the elemental damage received. Watch the video to observe how to make the Adapting Armor in RPG Maker MV!

Get the copy/paste code here: 

Place this inside of a state that will be linked to a battler through a passive state. Change the values in red to match your game.

<Custom Respond Effect>
// Check if the target received HP damage.
if (target.result().hpDamage > 0) {
  // Get all of the elements used for this attack.
  var elements = this.getItemElements();
  // Loop through all the elements.
  while (elements.length > 0) {
    // Get the current element.
    var element = elements.shift();
    // Set the default state.
    var state = 0;
    // If the current element ID is 7...
    if (element === 7) {
      // ...then apply state 121.
      state = 121;
    // If the current element ID is 8...
    } else if (element === 8) {
      // ...then apply state 122.
      state = 122;
    // If the current element ID is 9...
    } else if (element === 9) {
      // ...then apply state 123.
      state = 123;
    // If the current element ID is 10...
    } else if (element === 10) {
      // ...then apply state 124.
      state = 124;
    // If the current element ID is 11...
    } else if (element === 11) {
      // ...then apply state 125.
      state = 125;
    // If the current element ID is 12...
    } else if (element === 12) {
      // ...then apply state 126.
      state = 126;
    // If the current element ID is 13...
    } else if (element === 13) {
      // ...then apply state 127.
      state = 127;
    // If the current element ID is 14...
    } else if (element === 14) {
      // ...then apply state 128.
      state = 128;
    // If the current element ID is 15...
    } else if (element === 15) {
      // ...then apply state 129.
      state = 129;
    // If the current element ID is 16...
    } else if (element === 16) {
      // ...then apply state 130.
      state = 130;
    }
    // If the state is a positive number...
    if (state) {
      // ...then add the state to the target.
      target.addState(state);
      // And play an animation on the target.
      target.startAnimation(53);
    }
  }
}
</Custom Respond Effect>

Happy adapting!

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