Changes

Jump to navigation Jump to search

FF7/Battle and growth data

998 bytes added, 23:44, 25 November 2008
Stat curve record
Each entry is 16 bytes long and contains eight pairs of Gradients and Bases (1 byte each) for eight different level groups:
2-11 12-21 22-31 32-41 42-51 52-61 62-81 82-99
The general formula for primary stats to follow is:
Stat Difference = Rnd(1..8) + Base + Floor(Gradient * [Level Attained] / 100) - Current Stat
This difference is capped at 11 and the value located at &[0x01F8 + [Stat Difference] is added to that Stat.
<br/>
<br/>
(&[0x210 + Difference] / 100) * [Level * Gradient / 10] - [(Level - 1) * Gradient / 10] for MP
where &[x] is the value located at the address of this section
<br/><br/>The Experience level curves are 16 bytes long, although only eight bytes of each are used. Experience is calculated on a need- Placeholder to-level basis. This means that the total Experience needed for Expeach character to reach the next level is calculated and stored in memory. Needed XP = [Mod * ((Lvl-1) ^ 2) / 10]Where Mod is the value of the byte at the point in the curve based on the level to attain.So with a Mod of 70, to get to level 13 from level 12, a character would need: 70 * ((13-1) ^ 2) /10 70 * (144 / 10) 70 * 14.4 1008 additional XPThe savemap contains information about the needed XP to get to the next level for each character so it can be assumed that the game only performs this calculation at level up and changes the needed XP stat accordingly and compares that against the total XP the character has to determine when the next level occurs.<br/>To calculate the total XP needed for a given level: XP = 0 For I = 1 to Lvl-1 XP = XP + [Mod * (I ^ 2) / 10] Next I
==== Character AI data ====
Anonymous user

Navigation menu