Specific State and/or Element Rate based on Parameters

Hi! I'm developing a project where a good chunk of the game's mechanic would be having specific Sates & Elements rates being calculated by a formula that includes other parameters. For example, the Poison State Rate of a character could be 100 - user atk, or something like that. The Fire Element Rate could be 100 - user mat, and so on.

I wandered around in the js files and the only thing I found is the lukEffectRate, and I really don't know how to use that. Is there anyone here able to help out?

Thank you for reading this!
I think you could do this using Hime's Effect Conditions plugin. You will probably need to set the base % chance to 100%, then use a formula to do the calculation based on random numbers - for example, have the condition be rand(100) < a.mat or something like that, since the random number is more likely to be less than a.mat as the user's MAT grows larger.

If you have trouble using these tags, post in Plugin Support if you suspect it's related to your plugin/notetag usage, or Learning JavaScript if you suspect it's related to your formula.

Finally, I'm editing your post to remove mention of payment. Paid offers can only be made in the Classifieds section (which you don't have access to right now, but you will pretty soon). Crowdfunding talk generally isn't allowed at all due to the way it's been abused here in the past.
Uh, I'm sorry if I broke some forum rules!

That said, it seems that Hime's plugin is only able to affect items and skills. Are you saying I should write a notetag in every state-applying skill? Something like:

<effect condition: 1>
randomnumber.isgreaterthan(b.atk)
</effect condition>

It doesn't seem very efficient and even if I can't provide an example at the moment, I guess there could be situations where a state is not applyied by a skill. However, if this is my only chance, it's still way more solid than what I had until now. So, thank you, I'll keep looking for other solutions but I'll save this plugin as a backup plan!

Original thread: https://forums.rpgmakerweb.com/threads/specific-state-and-or-element-rate-based-on-parameters.112104/