Accuracy Formula

How would I make the Accuracy formula tied to the luck stat which is called Intelligence in my game
you'll need a plugin to rewrite the code in the battleengine
Where will I do that? what file, what area? what plugin
Just to verify - your profile says you're using VX Ace, but you're posting in MZ support. The question is for MZ?

If yes, whether a skill hits is determined in Game_Action.itemHit().
Code:
Game_Action.prototype.itemHit = function(/*target*/) {
    const successRate = this.item().successRate;
    if (this.isPhysical()) {
        return successRate * 0.01 * this.subject().hit;
    } else {
        return successRate * 0.01;
    }
};

For physical hit skills, it converts the success rate of the skill in the database to decimal form, then multiplies the user's hit rate ex-parameter.

You can modify that equation to take this.subject().luk into account, just make sure that you apply whatever math to it that you need to keep it in the appropriate range. This function returns a decimal value that represents the chance for the skill to hit. If you end up with a value of 1 or higher, it will never miss.

Original thread: https://forums.rpgmakerweb.com/threads/accuracy-formula.154339/