Skill to increase critical hit chances

Hi! So, I know you'll tell me this is too overworked but in the search of creating more appealing skills, I have one for my actor that increases his chances for critical hit once his HP gets to a low point. This skill, Blast Hit has the following damage formula:

a.atk * 12 - b.def * 2

This would be the situation.
• Actor has MHP of 200
• Actor enters in battle
• Enemy hurts actor and his HP lowers to 60 or less
• Actor uses skill Blast Hit and, as he's weak as hell, Blast will do a critical hit.

Below it's the formula I came up with reading in forums this but, the actual damage isn't shown, like my actor is hitting the same.

a.hp <= 100 ? 0.5 * (a.cri) : a.atk * 12 - b.def * 2

Any help / suggestion would be good. I'm a noob in this btw.
OK, why are you setting the critical rate to a rather low value? Like half the crit...
What if you multiply the hero's attack by 12 and the critical rate?
Try something like this:

Ruby:
a.atk * 12 * ((a.hp <= 100)? a.cri : 1) - b.def * 2
OK, why are you setting the critical rate to a rather low value? Like half the crit...
What if you multiply the hero's attack by 12 and the critical rate?
Try something like this:

Ruby:
a.atk * 12 * ((a.hp <= 100)? a.cri : 1) - b.def * 2
I read something like the max was 0.1 and actually, I tried with 2.5 but it didn't do what I wanted. Thanks! I'll try it and the come back to know if it worked!

Original thread: https://forums.rpgmakerweb.com/threads/skill-to-increase-critical-hit-chances.154161/