MV How to customize skill success rate

A friend of mine asked me how to customize the success rate of skills. I tried to modify data. It didn't seem to work. I was in rpg_objects.js didn't find what he needed. He wanted to make a successrate = user Hprate, I don't know if anyone knows how to solve it
is your friend talking about skill success rate or skill hit probability?
those are NOT the same.

I suggest you check this flowchart of skill calculatios to see what he really meant.

is your friend talking about skill success rate or skill hit probability?
skill success rate
I was in rpg_objects.js didn't find what he needed.
Code:
Game_Action.prototype.itemHit = function(target) {
    if (this.isPhysical()) {
        return this.item().successRate * 0.01 * this.subject().hit;
    } else {
        return this.item().successRate * 0.01;
    }
};

If you know any JavaScript, it should be pretty straightforward to use the eval of a notetag there.

If you're not sure how to do that, just ask.

Edit: Also, I just Googled "RPG Maker MV hit rate plugin" and Victor Engine has a Hit Formula plugin that allows you to put custom hit rates into individual skills.
Code:
Game_Action.prototype.itemHit = function(target) {
    if (this.isPhysical()) {
        return this.item().successRate * 0.01 * this.subject().hit;
    } else {
        return this.item().successRate * 0.01;
    }
};

If you know any JavaScript, it should be pretty straightforward to use the eval of a notetag there.

If you're not sure how to do that, just ask.

Edit: Also, I just Googled "RPG Maker MV hit rate plugin" and Victor Engine has a Hit Formula plugin that allows you to put custom hit rates into individual skills.
I'm talking about the success rate of skill use, not the hit rate of skills. In fact, I've thought about changing the success rate of some specific skills because of players' factors before
I'm talking about the success rate of skill use
yes, but that is exactly what you have been given.

there is a reason why I linked you to the flowchart: success rate and hit rate are handled in specific ways.

the default success rate is a fixed value of the skill, and the code you were given is exactly the place where that fixed value is used in the process.


if you want more help, you have to explain how you would use the success rate in the damage flow - where do you want to check it, and for what results?
yes, but that is exactly what you have been given.
thank you

Original thread: https://forums.rpgmakerweb.com/threads/how-to-customize-skill-success-rate.147842/