Tips & Tricks – Frenzy Virus (Monster Hunter) – 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 Frenzy Virus from Monster Hunter is interesting. When the target is initially infected with it, it doesn’t really do anything. However, depending on the ways the target acts in battle it can evolve two different ways leading into two different possible effects. Let’s take a look at how it works with this Tips & Tricks!

You can grab the copy/paste code here: Insert the following code into the Frenzy Virus state’s notebox. Change the values in red to fit your game’s settings.

<Reapply Ignore Turns>

<Custom Apply Effect>
// Set the charges for both virus paths.
user._frenzyA = 5;
user._frenzyB = 5;
</Custom Apply Effect>

<Custom Remove Effect>
// Clear the charges for both virus paths.
user._frenzyA = undefined;
user._frenzyB = undefined;
</Custom Remove Effect>

<Custom Respond Effect>
// Default the charges for both virus paths for the target.
target._frenzyA = target._frenzyA || 5;
target._frenzyB = target._frenzyB || 5;
// If the target received HP damage...
if (target.result().hpDamage > 0) {
  // The A path loses a charge.
  target._frenzyA -= 1;
}
// If the A path is at 0 charges...
if (target._frenzyA <= 0) {
  // ...then remove the Frenzy State.
  target.removeState(stateId);
  // And then add the A path state.
  target.addState(206);
}
</Custom Respond Effect>

<Custom Establish Effect>
// Default the charges for both virus paths for the user.
user._frenzyA = user._frenzyA || 5;
user._frenzyB = user._frenzyB || 5;
// If the attacker deals damage to the target...
if (target.result().hpDamage > 0) {
  // The B path loses a charge.
  user._frenzyB -= 1;
}
// If the B path is at 0 charges...
if (user._frenzyB <= 0) {
  // ...then remove the Frenzy State
  user.removeState(stateId);
  // And add the B path state.
  user.addState(207);
}
</Custom Establish Effect>

Happy RPG Making!

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