RMMV Simple Status Question

Hey everyone,

It's my understanding that the chance for a status effect to work (e.g., the chance that an enemy becomes poisoned or the chance that a hero becomes silenced) is based on various parameters like Luck. Is there a way to just make a nice, simple situation where I can set the chance of a spell's status effect to be, say, 50%, and not dependent on parameters/stats? Thanks!
It can be done, with the help of some plugins. I have been working around with this.
I removed every call of lukEffectRate function in the file rpg_objects.js

Doing so, every buff/debuff/state chance only depends on the flat percentages i've set myself
You could add a 50% chance to add the state in the damage formula. I think this would bypass any of the chance related LUK stat.

Code:
c = [DMG]; n = Math.randomInt(2); if (n=0) b.addState(X); c; else c;

Math.random() will return either a 0 or a 1. So the code above would set the DMG calculation to c. Then n will either be a 0 or 1. If n = 0 it will add the state and do the DMG, else it will just do the DMG.

However, I don't think the chance involved with LUK affecting states being applied is anything but trivial.
Math.random() will return either a 0 or a 1. So the code above would set the DMG calculation to c. Then n will either be a 0 or 1. If n = 0 it will add the state and do the DMG, else it will just do the DMG.
That's wrong - Math.random() returns a real number between 0 and 1. If you're then checking equal to zero, I think that's something like a 1% chance, or maybe even lower. If you want either 0 or 1, use Math.randomInt(2).
Cool, thanks for the correction.

edit: I changed my first post to correct
Thank you everyone for the answers; they were a huge help! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-simple-status-question.122953/