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
825
Reaction score
346
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

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,968
Members
137,561
Latest member
JaCrispy85
Top