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.
Not all undead are created equal! Some undead cannot be KO’d unless they are dealt with fire damage as their killing blow. Here’s how to create this effect in RPG Maker MV!
You can grab the copy/paste code here:
Place the following Lunatic Mode code into the Greater Undead passive state’s notebox. Change the values in red to reflect your game’s settings.
<Custom Passive Condition>
// Check if the undead death flag has not been triggered
condition = !user._undeadDeath;
</Custom Passive Condition>
<Custom React Effect>
// Check if this action recovers HP
if (this.isHpRecover()) {
// Make it deal damage instead
value = Math.abs(value);
}
</Custom React Effect>
<Custom Respond Effect>
// Check if the target's HP is 0 or less
if (target.hp <= 0) {
// Get this action's elements
var elements = this.getItemElements();
// Create a list of the elements that can kill this undead
var killingElements = [7, 13];
// Set the initial kill flag to false
var killed = false;
// Loop through the killing elements
while (killingElements.length > 0) {
// Get the currently looped killing element
var elementId = killingElements.shift();
// Check if the action's elements have a killing element
if (elements.contains(elementId)) {
// If it does, set the kill flag to true
killed = true;
}
}
// Check if the kill flag has activated
if (killed) {
// Set the undead death flag to true
target._undeadDeath = true;
// Refresh the target
target.refresh();
} else {
// Otherwise, set the target's HP to 1
target.setHp(1);
}
}
</Custom Respond Effect>
Enjoy!
Please wait while you are redirected...or Click Here if you do not want to wait.