Hi all,
First off, I am really sorry if this is in the wrong forum; I wasn't quite sure where to put it ^^"
I am currently writing a .pkm-editing program as a personal project. Through research and reading through helpful websites I have managed to tack together functions that create a PID from IVs, extract data from the PID and IVs and finds sets of IVs for PIDs.
However, I have hit a dead end. My next task is to write functions that a) calculate the Pokémon's level from its experience points and vice-versa, and b) calculate the max stats from base stats, level, EVs and IVs. I am aware that for the former the growth rates are different for each Pokémon - however, two forumlae are undetermined (fluctuating and erratic, I believe). For the latter, I'm really not sure how the max stats are calculated as a Pokémon is levelling up.
What I'm really asking is: can anyone provide information on either of these issues? How does Pokésav calculate experience and level? Does it have a built-in database of all the Pokémon species? And how does it calculate the max stats? Again, does it have all the Pokémon species' base stats built in?And how are the stats calculated at different levels? Do I need to emulate the environment of the actual game to calculate these?
Sorry; long post is long :3 Any help would be much appreciated.
Thanks in advance.