State knockout outside of battle?

Koi

Veteran
Veteran
Joined
Aug 8, 2013
Messages
358
Reaction score
14
First Language
English
Primarily Uses
RMVXA
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?
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
There is an event command that changes HP allowing KO.

First Event Command page, Actor group. Change HP

Remember to tick Allow KO.
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
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
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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!
 

Koi

Veteran
Veteran
Joined
Aug 8, 2013
Messages
358
Reaction score
14
First Language
English
Primarily Uses
RMVXA
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.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Koi

Veteran
Veteran
Joined
Aug 8, 2013
Messages
358
Reaction score
14
First Language
English
Primarily Uses
RMVXA
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top