State knockout outside of battle?

This might be a silly question, but is there a way to make a state knock out a character outside of battle?

Like, you're walking with poison, and instead of stopping at 1HP you actually get game over or faint or whatever?
There is an event command that changes HP allowing KO.

First Event Command page, Actor group. Change HP

Remember to tick Allow KO.
they have a option in system part of the database who  have this "K.O by slip damage" this permit to have K.O while you are on map and affected by negative states
they have a option in system part of the database who  have this "K.O by slip damage" this permit to have K.O while you are on map and affected by negative states
I can not believe I forgot to mention that!

Kudos!
Ah! Thank you! Um, but is there a way to make this only affect certain damaging states? Like a script for the notes on a state to make this not happen? It's okay if not, I'll just work around it.
Ah! Thank you! Um, but is there a way to make this only affect certain damaging states? Like a script for the notes on a state to make this not happen? It's okay if not, I'll just work around it.
You should be really careful about doing something like this because you are going to confuse the heck out of your player if some slip damage states can KO an enemy and some can't.

Having said that, if you still want to do this, you need to modify the max_slip_damage method in the Game_Battler class.  Here's what it looks like:

  #--------------------------------------------------------------------------  # * Get Maximum Value of Slip Damage  #--------------------------------------------------------------------------  def max_slip_damage    $data_system.opt_slip_death ? hp : [hp - 1, 0].max  endIf you want only, say, State 7 and State 13 to be able to KO a character by giving 'em the Slip, modify it as such, to check a user's current states and ignore the "KO by Slip Damage" option:

#-------------------------------------------------------------------------- # * Get Maximum Value of Slip Damage #-------------------------------------------------------------------------- def max_slip_damage (self.state?(7) or self.state?(13)) ? hp : [hp - 1, 0].max endI haven't tested this but since state? (whether a user is affected by a given state) is a valid property of a Game_Battler, I think it should work well.
Thank you very much! It works perfectly :3

And don't worry, there are only two states that cause slip damage and I make it very clear which one causes a KO.

Original thread: https://forums.rpgmakerweb.com/threads/state-knockout-outside-of-battle.35446/