(MZ) critical strike if enemy has a state

I'm trying to make a state where if a specific charecter attacks/uses a skill on an enemy that has a state, a garunteed critical hit will occur. Or bonus damage or a negative state is applied or something

I know how to do this in previous makers, but not MZ anyone have any idea? thank you in advance
Moved to: MZ Support

(MZ Support is in the Latest Game Development Engines section)

How is it done in previous makers? What is different about MZ that it won't work?

Original thread: https://forums.rpgmakerweb.com/threads/mz-critical-strike-if-enemy-has-a-state.131583/