Random Number Generator

From Final Fantasy Hacktics Wiki
Revision as of 08:27, 26 February 2012 by Choto (talk | contribs)
Jump to navigation Jump to search

0002230c: 240a00a0 addiu r10,r0,0x00a0

00022310: 01400008 jr r10 # Jump to 0xA0 (system call), with r9 = 0x2f (47). This calls the PSX RNG.

00022314: 2409002f addiu r9,r0,0x002f


Return Locations

00059ffc: Out of Battle Unit Generation x2

0005a448: Generate Unit's Base Raw Stats

0005ac1c: ENTD Data Calculation

0005b500: Sprite Set and Random Secondary Job Calculation

0005ba70: Calculate Unit's Abilities

0005c984: Store/Generate Character Names

0005cc98: Calculate Random Equipment

0005d0bc: Calculate Unit's R/S/M

0005da10: Level Up Section

0005e0cc: [[Check if Random >= Chance]]

0017d4a0: Determining Multi Hit Formulas (and other ugly hard coding)

00180a08: Unknown 1

00183078: Undead Revive, Reraise, death sentence, some brave change? some defend change?

0018eea0: Random Process (gives a number between 0-7FFF)

0019af18: Some AI routine 1