How Can I play with the accuracy of a skill ?

Hello guys !

I want to change the chance to touch for a skill (arrow raining) according to the number of monster on the battlefield.

Something like : Chance to touch = Chance to touch * Number of monster / 8

I am using all the main yanfly plugin if needed 🙂.

Thank you very much and take care !
You could try using an if/then statement in troop window. Set a variable to the number of enemy battlers that are alive

$gameTroop.aliveMembers().length

then set the conditions of each variable. The issue is how to get the %chance to hit with the skill. You are using Yanfly Hit Accuracy? That one costs $ I think, but it's the only way I know of quickly to change a specific skills hit %. I don't have that particular plugin, so I cannot be sure, but I think it allows for lunatic code. So you would need to figure that part out for the conditional branches in the troop event.
Hello !

I may be wrong but the yanfly plugin only apply to all skill. It can't be a modification for one skill...

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-play-with-the-accuracy-of-a-skill.121395/