Tips & Tricks – Duplicity Augments – 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.

Ever wanted to make an augment that grants a different effect depending if you attach it to a weapon or an armor? Now, you can using this Tips & Tricks for RPG Maker MV!

You can grab the copy/paste code here: 

Insert the following notetags into your augment item in the database. Change the values in red to reflect your game’s settings. Change the values in blue to reflect the attachment type.

<Augment Attach Eval: Orb>
// Check if the item is a weapon.
if (DataManager.isWeapon(item)) {
  // Then increase HP by 200.
  item.params[0] += 200;
// Otherwise it's an armor...
} else {
  // Then increase MP by 50.
  item.params[1] += 50;
}
</Augment Attach Eval: Orb>

<Augment Detach Eval: Orb>
// Check if the item is a weapon.
if (DataManager.isWeapon(item)) {
  // Then decrease HP by 200.
  item.params[0] -= 200;
// Otherwise it's an armor...
} else {
  // Then decrease MP by 50.
  item.params[1] -= 50;
}
</Augment Detach Eval: Orb>

Happy attaching!

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