Help with character stats and damage formulas

Hello everyone, I need help with the way I want to setup stats in my game and I hope this is the right place to post.

I intend for my combat system to use these stats for these reasons:

- Maximum HP
- Maximum MP
- Attack -> For attack power (this will calculate both magical and physical damage)
- Defense -> For how much they can defend
- Agility -> To determine how often the character can dodge an attack
- Luck -> To determine how much a character can deal critical damage

What I need help with is:

- How can I make it so the game calculates automatically the character's doge rate depending on their agility and use luck to determine if the attack will deal critical damage?

If there are any plugins or maybe in-engine settings I could use, I'd love to know. Thank you so much in advance, to anyone who can help me with this. 👋
Take a look at Yanfly's Hit Accuracy. It lets you refactor the hit formula, so you can use whatever parameters you like.

Similarly, Yanfly's Critical Control lets you redefine the critical damage formula so you can include luck.

There are some other alternatives to Yanfly for the hit formula if you Google it, I think Victor Engine has one.
Take a look at Yanfly's Hit Accuracy. It lets you refactor the hit formula, so you can use whatever parameters you like.

Similarly, Yanfly's Critical Control lets you redefine the critical damage formula so you can include luck.

There are some other alternatives to Yanfly for the hit formula if you Google it, I think Victor Engine has one.
Thank you!

I honestly don't use hit accuracy and critical control very often so I didn't even think of using them. I'll give it a look.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-character-stats-and-damage-formulas.161188/