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

Sometimes a mechanic that is meant to add challenge is just annoying. Even the Final Fantasy games did not completely escape this pitfall of design. (FF8 draw system I'm looking at you - grrrr)
starting working on the sprites for one of my games major antagonists finally. here's the first frame of his chanting motion in battle.
Have spent too much time hammering out with a friend just how to make a reoccurring enemy that permanently learns skills you use against her.
I know what I want in a loose sense. Maybe I should just make a post asking for opinions and suggestions.
Shoot Enemy Off-Screen, Run RPG Maker Game as a Web Server, & Thai Keyboard | RPG Maker News #109

Forum statistics

Threads
113,734
Messages
1,077,036
Members
147,762
Latest member
Bad_At_Scripting
Top