How to make criticals ignore defense

Hey all, I've been trying to figure out how to make a critical hit ignore defense. I know where the critical handler is in Game_Battler, the default being to multiply damage by 3. I understand how to edit this and all, but is there a way to change this so instead of multiplying damage it ignores an enemy's defense? My normal damage formula is (a.atk/2 - b.def/4), so I know I'd be able to put in a formula where I just don't include b.def, but the problem is some skills that can critical won't use the basic damage formula.


I think I'm making this sound more complicated than it needs to be. Basically, instead of taking the resulting damage of a regular attack and multiplying it by a number, is there a way I can have the defense be ignored before damage is processed? Is there like a ignore_defense handler or something? I have some basic scripting knowledge but I don't know all the default terminology.
Hey all, I've been trying to figure out how to make a critical hit ignore defense. I know where the critical handler is in Game_Battler, the default being to multiply damage by 3. I understand how to edit this and all, but is there a way to change this so instead of multiplying damage it ignores an enemy's defense? My normal damage formula is (a.atk/2 - b.def/4), so I know I'd be able to put in a formula where I just don't include b.def, but the problem is some skills that can critical won't use the basic damage formula.


I think I'm making this sound more complicated than it needs to be. Basically, instead of taking the resulting damage of a regular attack and multiplying it by a number, is there a way I can have the defense be ignored before damage is processed? Is there like a ignore_defense handler or something? I have some basic scripting knowledge but I don't know all the default terminology.



You can actually check for a critical in the damage formula and adjust it accordingly, though I forget what the syntax is - can anyone fill him in on it please?


It would be something like if critical? ? a.atk * 4 : a.atk * 4 - b.def * 2
Bah, ignore me. Mixed up Ace and MV again.
I figured it was something like that. I'm getting a lot better with the formulas, but I don't know all the syntax and there's no comprehensive list of everything you can do with the formula box. 

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-criticals-ignore-defense.67782/