Tips & Tricks – Chaotic Energies (World of WarCraft) – 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

Support Yanfly on Patreon

Chaotic Energies is an effect from WoW. It increases spell damage done by a random amount up to 24% and reduces damage received by a random amount up to 5%.

You can grab the copy/paste code here: Insert the following Lunatic Mode code into the notebox of the Chaotic Energies state. Change the values in red to reflect your game’s settings.

<Custom Confirm Effect>
// Create a pool of valid skill types.
var validtypes = [];
// Insert the ID's of the skill types you wish for this to affect.
validtypes.push(22, 23, 24, 25);
// Check if this action is a skill that deals magical damage and is of a correct skill type.
if (this.isHpEffect() && this.isMagical() && this.isSkill() && value > 0 && validtypes.contains(this.item().stypeId)) {
  // Calculate the random bonus.
  var bonus = Math.random() * 0.24;
  // Add the bonus value to the damage.
  value += Math.ceil(value * bonus);
}
</Custom Confirm Effect>

<Custom React Effect>
// Check if the user is taking HP damage.
if (this.isHpEffect() && value > 0) {
  // Calculate the random reduction.
  var bonus = Math.random() * 0.05;
  // Reduce the damage
  value -= Math.ceil(value * bonus);
}
</Custom React Effect>
Please wait while you are redirected...or Click Here if you do not want to wait.