Tips & Tricks – Thorn Bind Hostage (Log Horizon) – 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.

Thorn Bind Hostage is a skill from the light novel/anime Log Horizon. It binds the foe with 5 roots, which upon being physically struck, will cut and release damage to the foe. Now, you can recreate this effect in RPG Maker MV!

You can grab the copy/paste version of the code here. 

Change the red highlighted code bits to fit your game!

<Custom Apply Effect>
// Sets the counter on the state to 5.
user.setStateCounter(stateId, 5);
// Determine the damage of the roots being cut.
user._thornBindDmg = origin.mat * 2;
// Determine the maximum cap of the damage.
user._thornBindDmg = Math.min(user._thornBindDmg, 1000);
</Custom Apply Effect>

<Custom Deselect Effect>
// Get the result of the target.
var result = target.result();
// Check if the target is hit, alive, the action is physical, and dealing damage.
if (result.isHit() && !target.isDead() && this.isPhysical() && this.isDamage()) {
  // Play animation on target.
  target.startAnimation(12);
  // Get the amount of damage dealt.
  var dmg = target._thornBindDmg || 1;
  // Make the target lose HP.
  target.gainHp(-dmg);
  // Disable critical hit effects.
  target.result().critical = false;
  // Start the damage popup.
  target.startDamagePopup();
  // Clear the result.
  target.clearResult();
  // Change the counter on the state to drop by 1.
  target.addStateCounter(stateId, -1);
  // Check if the counter has reached 0.
  if (target.getStateCounter(stateId) <= 0) {
    // Remove the state.
    target.removeState(stateId);
  }
}
</Custom Deselect Effect>

Happy binding!

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