RMMZ Make slip damage KO enemies but not allies

jkweath

Goes Fast
Veteran
Joined
Sep 21, 2016
Messages
406
Reaction score
610
First Language
English
Primarily Uses
RMMV
Hello,

So I'm wondering if anyone would be open to writing a script (unless there's one floating around already that I'm not aware of) to make poison ("Slip") damage KO enemies, but not allies.

In the editor, you can set up slip damage to KO or not to KO, but the setting applies to both allies and enemies. I'd like this setting to *only* apply to allies, if possible.
 

Kenen

Veteran
Veteran
Joined
Apr 3, 2012
Messages
341
Reaction score
252
First Language
English
Primarily Uses
RMMZ
JavaScript:
_Game_Battler_maxSlipDamage = Game_Battler.prototype.maxSlipDamage;
Game_Battler.prototype.maxSlipDamage = function() {
    if (this.isEnemy()) return this.hp;
    return _Game_Battler_maxSlipDamage.apply(this);
};
 

jkweath

Goes Fast
Veteran
Joined
Sep 21, 2016
Messages
406
Reaction score
610
First Language
English
Primarily Uses
RMMV
Awesome, thank you! I'll check this out ASAP :rhappy:
 

Latest Threads

Latest Posts

Latest Profile Posts

Checking out the Judge's Round Table. Really cool getting their perspective in a Q/A environment like this.
I'm heading back to Orlando tomorrow! Dad said he's going to take me to my favorite arcade and maybe Aquatica.
animated message windows <3
or message window that uses background images that can be animated?
Still need to fix some things, but it's going great so far :)
CEPjLJn.gif
just when I thought one of the greatest game of all time couldn't get any better, they announce a new dlc for it.
For anyone interested: there's another huge humble bundle with JRPG assets + a game jam starting next month - it's for a good cause, so check it out <3

Forum statistics

Threads
113,784
Messages
1,077,442
Members
147,821
Latest member
Zabasin
Top