Default stat formulas

Because of a certain method I want to use in my game, I need to write out the stat calculation formula again within a notetag. Unfortunately, I can't find the default formulas on the interwebs and I don't even know where to start looking in the base code.


Does anyone know how the default game engine calculates the ATK, DEF, MAT, MDF, MHP, MMP, AGI and LUK stats? 
They aren't calculated, they are set by the database on the class tab and can be changed in any form there.


To use a value calculated by a formula, you need to use a plugin to completely replace the default handling - I think yanfly and tsukihime wrote some that can do this.
They aren't calculated, they are set by the database on the class tab and can be changed in any form there.


To use a value calculated by a formula, you need to use a plugin to completely replace the default handling - I think yanfly and tsukihime wrote some that can do this.

Ah, I see. So the database 'edit values' thing just makes a list of numbers? Interesting. I'm using yanfly's plugin but I wanted to make it use the default value and then edit that if a condition is fulfilled, so I thought I'd have to write out the calculation again. If there's no calculation though, that should be simple! Thanks. 

Original thread: https://forums.rpgmakerweb.com/threads/default-stat-formulas.63735/