Ignoring CEV when a state is applied

So, there's a ninja class in my game that starts out each battle stealthed. Stealth makes it's target rating 0, and is only removed when they either make an attack, or are hit with an AOE attack. This can let the player decide if they want to have the ninja support from the shadows, or deal damage on the front lines (but stealth can't be reaplied, so once the ninja switches roles, they can't go back stealthed)

I want to make it so that when the charecter is stealthed their first strike deals a critical hit.

The problem is, im using CEV for both enemies and actors for more functionality of effects. Is there a way to have them ignore CEV and crit while the stealth state is applied?
If your stealth is handled witha state, couldn't you just set the ninjas critical hit chance +999% while stealth is active? I mean if after their first attack, stealth is removed, then that would technically count as "their first strike deals a critical hit"

Edit: I also found this yanfly script that might help you.
But before that you will also need this script
Put Lunatic Damage above LDP critical in the list
It seems like an battle event condition for the first turn and ScorchedGround's suggestions are worth a try here.

@ScorchedGround
You gotta hate Reforged then. XD
The highest i can set crit rate is +100%. This is VX ace not MV. And to apply the state at the beginning of combat i'm using a script. And those Yanfly scripts don't account for states

It might be possible in the damage formula, but i wouldn't know what to do with that

Original thread: https://forums.rpgmakerweb.com/threads/ignoring-cev-when-a-state-is-applied.124923/