Slip damage can kill in battle but not outside

Alyon93

Veteran
Veteran
Joined
May 19, 2015
Messages
62
Reaction score
2
First Language
Italian
Primarily Uses
N/A
Hi guys, 

this time around I'm pretty sure I've checked everywhere and anywhere for this issue.

I know a lot of things about slip damage have been asked, different damage in battle and outside, different way to calculate damage etc.

I don't need any of these. 
The default damage is ok for me.

My problem is that I want slip damage to kill inside battle while not killing outside.
The point here is that in my game "death" state is removed after battle but poison not.
So the default RMVXA editor gives two options:

1) Slip damage doesn't kill, remaining at 1 HP

2) Slip damage kills

In case 1) character won't die on the field which is good, but won't die even during a battle which I don't like.

In case 2) character will die during a battle but they'll die on the field too which sure might be strange for the user since every time someone dies they resurrect at the end of a battle.

I want a mixed approach between them. Dying during battles but not on the field, which I guess can be done only through script. 

Of course if someone is going to help me specify whether or not I should tick slip damages in the option or not.

Thanks  :)
 

optimum45

Veteran
Veteran
Joined
Mar 31, 2015
Messages
537
Reaction score
65
First Language
English
Primarily Uses
I had the same problem while wanting the same thing.  I ended up compromising with "All Status Effects End At End of Combat".

Except for poison from the floor.  That can kill you, and is meant to.   :guffaw:
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
826
Reaction score
345
Primarily Uses
Something like this should work:

Code:
class Game_Battler < Game_BattlerBase  #--------------------------------------------------------------------------  # * Get Maximum Value of Slip Damage  #--------------------------------------------------------------------------  def max_slip_damage    $game_party.in_battle ? hp : [hp - 1, 0].max  endend
It overwrites the slip damage option, so it shouldn't matter whether it is on or off.
 

Alyon93

Veteran
Veteran
Joined
May 19, 2015
Messages
62
Reaction score
2
First Language
Italian
Primarily Uses
N/A
It works finely.

Thanks Yato.

I'll credit you!
 
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Stream will be live shortly with some art! Going to do a recolor, then start on a new monster! Feel free to drop by!
I've been busy working on other projects this month so I haven't been able to do much towards finishing the prep work for my RPG, but I did brainstorm some interesting ideas for the game.
redrawing one of three my VNM protags
I'm making my game in both English and Portuguese. I wonder if I should add Spanish too? :v
Thinking about picking up Luna Engine, but also wondering if I should wait to see if it goes on sale.

Forum statistics

Threads
93,705
Messages
914,822
Members
123,311
Latest member
rancykey
Top