Tips & Tricks – Siphoning Strike (League of Legends) – 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.

In League of Legends, the champion Nasus has an ability called Siphoning Strike. Once used, his next attack deals bonus damage. If he kills an enemy with this attack, Siphoning Strike permanently gains bonus damage on subsequent uses. Now, you can recreate this ability in RPG Maker MV!

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

Be sure the change the code colored in red to fit your game.

<Custom Apply Effect>
// Sets the default Siphon Stack amount.
user._siphonbonus = user._siphonbonus || 1;
// Gets the Life Siphon bonus amount.
var bonus = user._siphonbonus;
// Create a counter to display it.
user.setStateCounter(stateId, 'x' + bonus);
</Custom Apply Effect>

<Custom Confirm Effect>
// Check if the current action is an attack.
if (this.isAttack()) {
  // Sets the default Siphon Stack amount.
  user._siphonbonus = user._siphonbonus || 1;
  // Calculate the bonus damage.
  value += user._siphonbonus * 100;
  // Play an animation on the target.
  target.startAnimation(102);
  // Get the target's current life state.
  target._lifeState = target.hp > 0;
}
</Custom Confirm Effect>

<Custom Establish Effect>
// Check if the current action is an attack.
if (this.isAttack()) {
  // Check if the target has fallen in this hit.
  if (target._lifeState && target.hp <= 0) {
    // Sets the default Siphon Stack amount.
    user._siphonbonus = user._siphonbonus || 1;
    // Increase the stacks by 1.
    user._siphonbonus += 1;
  }
  // Remove the Siphoning Strike state.
  user.removeState(stateId);
  // Reset the life state check.
  target._lifeState = undefined;
}
</Custom Establish Effect>

Happy Siphoning!

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