Tips & Tricks – Destiny Bond (Pokémon)

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.

Destiny Bond is a move from Pokémon that makes the user enter a Destiny Bond state. If the user gets K.O.’d while in this state, the user will take down its attacker with it for a double K.O.! You can now recreate this effect in RPG Maker MV!

You can find the copy/paste version of the code here: 

Copy and paste this into your Destiny Bond status effect!

<Category: Bypass Death Removal>

<Custom Respond Effect>
// Check if the Destiny Bond target's HP is at 0.
if (target.hp <= 0) {
  // Remove the Destiny Bond state.
  target.removeState(stateId);
  // Get the death state for the attacker.
  var deathState = user.deathStateId();
  // Check if the attacker isn't immune to the death state and doesn't resist it.
  if (user.stateRate(deathState) > 0.01 && !user.isStateResist(deathState)) {
    // Play an animation on the attacker.
    user.startAnimation(65);
    // Set the attacker's HP to 0.
    user.setHp(0);
    // Check if the attacker is dead.
    if (user.isDead()) {
      // Make the attacker collapse.
      user.performCollapse();
    }
  }
}
</Custom Respond Effect>

Happy bonding!

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