How to overwrite state resist

I am trying to implement a "parry" mechanic in my game. Basically, enemies only use their power moves when they are in a "prepared" state, in that state and that state only the player can use "interrupt" to stun the enemy.

My first idea is to make interrupt only apply stun 1% of the time and make prepared state increase state rate of stun to *1000%, but that simply doesn't work, the chance for stun to be applied seems still 1%, I tried to change enemy state resistant instead and it still doesn't work.

So is there any way for me to increase state rate? Preferably by addition instead of multiplication that overwrites state resist.

Edit: 1% * 1000%=10% I suck at math. But still, is there a better way to do this other than make interrupt works 10% of the time?
My gut reaction is to use a common event for Enemy Transform at the same time the enemy goes into the "preparation" state. The new enemy is really a duplicate of the enemy, but the new enemy also has a modified stat parameter for the State Rate to become more vulnerable. I'd use another Enemy Transform to revert back to the original enemy once the move is performed or the end of the turn arrives.

So, what I think you need to do is...

1. Develop the duplicate enemy with a modified State Rate in the database.
2. Wherever you have enemy going into prepared state, do Enemy Transform.
3. When the enemy executes the move, do Enemy Transform to revert back to normal.
4. At the end of a turn, use a conditional so that if the enemy does not have a prepared state, Enemy Transform into the original.


Edit: PS., if your skill has a proc rate of only 1%...surprise, it's still going to be only 1% against an enemy that's completely vulnerable!

Edit2: I think the OP already tried something like my suggestion and that the actual problem is the proc rate. IIRC there's two checks: the proc rate and the apply rate. So all the state/enemy modifications were on the apply rate, but the 1% proc never changed and the skill always failed the proc rate.
If you're using RPG Maker VX Ace then you should be able to put the following code in the damage formula box of your "Interrupt" skill to get the effect:

b.add_state(x) if b.state?(y)

Where "x" change that to the ID# of the "Stun" state from your database.
Where "y" change that to the ID# of the "Prepared" state from your database.

Put simply, this will check if the target "b" has state "y" and if so apply state "x".

Hope that helps!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-overwrite-state-resist.153458/