I think instead of doing all of this roundabout work... you should probably just use a plugin if you want a specific text image to say "no damage".
Everyone on these forums is always saying "you don't need plugins, just do it with events/JS". Give me a break!
:hswt:
But I guess after spending like a month to get a MOG hunter plugin to work how I wanted I got pretty burned out. Not to mention, my project is already a jenga tower of plugins crammed together. I had a hunch that this could be done very simply and I didn't need a whole dang plugin to do what I needed.
that function is for Game_Actions, not Game_ActionResults. script doesnt stop working just because its being called from a plugin
Ahhh I see this explains my nightmare of wondering why sometimes JS stuff works and other times it goes "this is not a function". I really don't know how to figure that kind of thing out without just like... reading through ALL of the code?
Game_Battler.prototype.gainMp = function (value) { this._result.mpDamage = -value; this._result.mpAffected = true; this.setMp(this.mp + value); };
This is beautiful, sir! Thank you! I think this is the exact thing I needed. It looks like everything is in working order. I am curious why you put the OR into the conditional to check if it's hp damage or mp damage? I guess I should just point out that I'm good with the game showing a 0 when it's zero hp damage, so I left that out.
I also wanted to show this off just cuz:
JavaScript:
Sprite_Damage.prototype.digitHeight = function() {
return this._damageBitmap ? this._damageBitmap.height / 6 : 0;
};
By default this is 5 and not 6. I added a row to the damage spritesheet so I could have a nice big "NO EFFECT" show. I also made my "PARRY" text not scrunched: