My first instinct was to use Yanfly's hit accuracy and crit control plugins, but I don't know if that will work with what I want to do because I want the crit chance calculation to be incorporated into my hit chance calculations.
I have separate but similar formulae I want to use for checking if magic and physical attacks hit and crit.
Physical:
Attacker's luck is multiplied by 1-10.
Defender's agility is multiplied by 1-10.
If the the resulting luck value is equal to or greater than the defender's agility value after each are multiplied by the randomizers, the resulting luck value is equal to or greater than the resulting agility value, the attack hits.
If the resulting luck value is at least 2x the resulting agility value, the hit is a crit.
Magic will follow a similar calculation but use 1/2 m.atk + 1/2 luck vs 1/2 m.def + 1/ agility
I think I could probably figure out how to do most of the hit calculations with the hit accuracy plugin, but I don't know how I could manage to incorporate the rules for crits into that- or whether or not I can, or should go about this a different way entirely.
I have separate but similar formulae I want to use for checking if magic and physical attacks hit and crit.
Physical:
Attacker's luck is multiplied by 1-10.
Defender's agility is multiplied by 1-10.
If the the resulting luck value is equal to or greater than the defender's agility value after each are multiplied by the randomizers, the resulting luck value is equal to or greater than the resulting agility value, the attack hits.
If the resulting luck value is at least 2x the resulting agility value, the hit is a crit.
Magic will follow a similar calculation but use 1/2 m.atk + 1/2 luck vs 1/2 m.def + 1/ agility
I think I could probably figure out how to do most of the hit calculations with the hit accuracy plugin, but I don't know how I could manage to incorporate the rules for crits into that- or whether or not I can, or should go about this a different way entirely.