State Rate not working properly

Hi!

I seem to have an issue with the "state rate" trait.

To my understanding, if I have for example a State "Burn" and an actor/enemy with the trait "State Rate Burn * 70%" that means, the state is only applied 7 out of 10 times (aka 30% Resistance to "Burn")

Now in my Battletests I never came a cross a single resist/miss. So I set the "State Rate Burn" to 10% (which should give me a 90% resist rate)
Still no result.

Is it possible that calling upon a state via notetag (e.g. YEP Action sequence -

add state 16: target) circumvents the whole State Rate mechanic?

If yes, is there a way around it or should I just call the State via the RPG maker menue?

If no... any other ideas?

As a quick heads up
- yes, the Pugins are in the correct order
- no, I do not use "certain hit"
if your skill is certain hit, it ignores state rate
EDIT: i should have finished reading huh lmao. my bad. still, share a picture of the skill, the state and the enemy atleast to make sure nothings off

if it is the action sequences at fault, you can try using the eval command and have it be
"eval: if (Math.random() < y * target.stateRate(x)) target.addState(x)"
where y is the application chance for the skill as a decimal and x is the state's id
Is it possible that calling upon a state via notetag (e.g. YEP Action sequence - add state 16: target) circumvents the whole State Rate mechanic?
Correct, addState() is the low level function that does exactly what it says - adds the state.

If you want to take the target's state rate into account, you can include that in your notetag:
Code:
if (Math.random() < target.stateRate(16))
    add state 16: target
end

Original thread: https://forums.rpgmakerweb.com/threads/state-rate-not-working-properly.165253/