How to make DoT do fatal damage in RPG Maker MV [CLEARED]

Hi everyone,

I'm currently working on a project in RPG Maker MV and I'm using Yanfly's Engine Plugins, specifically the Buffs & States Core (YEP). I've run into a bit of confusion regarding the implementation of Damage over Time (DoT) States, such as Burning or Electrocute, that can potentially deal fatal damage.

For Example, I have a DoT state dealing 30 damage, if an actor's current HP is only 24, the default mechanics of RPG Maker MV prevent the actor from taking fatal damage. I'm aiming to create a system where if the accumulated DoT damage exceeds an actor's remaining HP, it would result in a knockout or defeat.

I'd greatly appreciate any suggestions or guidance on how I could achieve this in my project. Is there a way to modify the default behavior of RPG Maker MV or possibly utilize Yanfly's plugins to make this happen? Your expertise and insights would be invaluable to me.
For Example, I have a DoT state dealing 30 damage, if an actor's current HP is only 24, the default mechanics of RPG Maker MV prevent the actor from taking fatal damage.
...no, they don't?

Please provide the actual code you're using (be sure to put it in CODE tags, the </> on the edit bar). Taking damage should kill a battler unless you're doing something to prevent it.
In the database, under System, is "Death by Slip Damage" checked?
Yep, Aoi covered what I was going to say. First place I would've looked was the "Death by Slip Damage" box. If it ain't checked, you can't die by DoT. Gotta check it if you want the feature.
@Aoi Ninami and @Tai_MT That's why I asked the OP to provide code - if they're doing it via code in a Yanfly notetag from Buffs & States Core, that doesn't apply.

I just tested by keeping the slip damage unchecked and putting a fatal amount of damage into a Custom Regeneration notetag. Works just as expected.

If it's from the Custom DoT Formula, then it may - but that's not what was stated.
Thank you very much for replied... I'm already found a way to made it deal fatal damage, I'm using YEP_X_ExtDoT Plugin to make a DoT damaging formular this way I can made a fatal damage after action end.
And yes... I didn't check the "Death by Slip Damage" box... 😛 Thank you very much to figure this out But using Yanfly's ExtDoT Plugin I can make some formula and dealing a fatal damage either thank you everyone so much :LZScheeze:😮‍💨😅! ! ! !
1692980039902.png
I'm using YEP_X_ExtDoT Plugin...I didn't check the "Death by Slip Damage" box
Just to be clear, you don't need to.

The box in the system options will only apply to negative regeneration in traits. Any code entered in DoT notetags is processed separately and doesn't check that option.

Code:
// This line processes the code in the states, which applies any damage and checks for the battler to die
  if (this.isAlive() && $gameParty.inBattle()) {
    this.processDamageOverTimeStates();
  }
// After that's complete, it calls the original function that checks traits. That's where maxSlipDamage() is referenced
  Yanfly.EDoT.Game_Battler_regenerateAll.call(this);

The same is true for anything put in Buffs & States Core Custom Regeneration notetags.

So if you are using the built-in traits and want them to be able to kill, then yes you need to check the built-in option. But just to reference your question in this thread, the check box is irrelevant to code you use in either of these plugins.

Good luck with your project!
This thread is being closed due to being solved. If you need it reopened, report it to let us know why.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-dot-do-fatal-damage-in-rpg-maker-mv-cleared.160571/