Stats and how damage is calculated Question

Hi everyone im new to the RPG Maker community and have just recently started using it.

I have gotten the basics down but im wondering how exactly the damage is calculated in the engine.

For instance I have played around with the stats and so on and cant figure what controls the magic damage I have pushed up Mind as far as it can go with a base of 10 on a spell but it will deal between 10-13 damage depending on the variety and so on.

I have noticed the Agility bug and im keeping all my monster and character at the same agility for now.

So what im asking is if anyone can explain how each stat effect damage and how the base damage comes into play.

Is there a way i can change damage calculations or is there just a simple rule of how stats are worked out?
Damn! 😛  I didn't noticed it was about RPG Maker 2003. Nvm. and sorry. 😛
Open the Maker -> Contents (F1) -> Material Reference (at the bottom) -> Battle Formula (third last)

Everything you want to know should be written in there.
ohhh Ill have a look thank you very much 😀 The default damage calculation is annoying and tedious to build a balanced combat system around.

Original thread: https://forums.rpgmakerweb.com/threads/stats-and-how-damage-is-calculated-question.41544/