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.
In Bravely Default, when a battler is afflicted by Doom, it will die once the status effect counter reaches 0. You can now recreate this very effect in RPG Maker MV!
Get the copy/paste version of the code here:
Change the values in red to fit your game.
<Custom Leave Effect>
// Get the death state for the user.
var deathState = user.deathStateId();
// Check if the user is not immune to death nor resistant to it.
if (user.stateRate(deathState) > 0.01 && !user.isStateResist(deathState)) {
// Play animation on the user.
user.startAnimation(65);
// Set the user's HP to 0.
user.setHp(0);
// Check if the user is dead.
if (user.isDead()) {
// Make the user collapse.
user.performCollapse();
}
}
</Custom Leave Effect>
Happy Dooming!
Please wait while you are redirected...or Click Here if you do not want to wait.