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 Truthseeker is a passive ability from Final Fantasy Record Keeper. When the user of the passive has a sword-type weapon equipped, the user will deal more damage overall. Here’s how to recreate the effect in RPG Maker MV!
You can grab the copy/paste code here: Insert the following Lunatic Mode code into your passive state’s notebox. Change the values in red to reflect your game’s settings.
<Custom Passive Condition>
// Set the default condition to false.
condition = false;
// Check if the party is in battle.
if ($gameParty.inBattle()) {
// Check if the user is an actor.
if (user.isActor()) {
// Get the sword weapon-type ID
var swordTypeId = 2;
// get the user's currently equipped weapons.
var weapons = user.weapons();
// Loop through each weapon
for (var i = 0; i < weapons.length; ++i) {
// Get the currently looped weapon
var weapon = weapons[i];
// Check if the weapon exists and if the weapon's type is a sword
if (weapon && weapon.wtypeId === swordTypeId) {
// Set the condition to true
condition = true;
}
}
}
}
</Custom Passive Condition>
<Custom Confirm Effect>
// Check if the action dealt HP damage
if (this.isHpEffect() && value > 0) {
// Calculate the amount of bonus damage dealt
var bonus = Math.ceil(value * 0.40);
// Add that to the finalized damage
value += bonus;
}
</Custom Confirm Effect>
Enjoy!
These Tips & Tricks ideas are made possible thanks to our creative patrons on Patreon! The majority of our Tips & Tricks ideas are placed within the Patreon-exclusive Sample Project for quick and easy access! If you’d like to make a Tips & Tricks suggestion, Yanfly’s Patreon-based Suggestion Box a visit here:
Happy RPG Making!
Please wait while you are redirected...or Click Here if you do not want to wait.