Difference between revisions of "Random Number Generator"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
== Return Locations ==
 
== Return Locations ==
  
00059ffc: [[Out of Battle Unit Generation]] x2
+
*SCUS
  
0005a448: [[Generate Unit's Base Raw Stats]]
+
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]]
  
0005ac1c: [[ENTD Data Calculation]]
+
*Battle.bin
 +
 +
0017d4a0: [[Determining Multi Hit Formulas (and other ugly hard coding)]]
 +
00180a08:
 +
00183078: [[Undead Revive, Reraise, death sentence, some brave change? some defend change?]]
 +
0018eea0: [[Random Process (gives a number between 0-7FFF)]]
 +
0019af18:
  
0005b500: [[Sprite Set and Random Secondary Job Calculation]]
+
*Wldcore.Bin
  
0005ba70: [[Calculate Unit's Abilities]]
+
000706c4:
 +
00070710:
 +
0007330c:
 +
00077f2c:
 +
000796d0:
 +
00079bfc:
 +
00079f24:
 +
00079f60:
 +
00079f84:
 +
0007a02c:
 +
00080654:
 +
00080690:
 +
0008baf4:
 +
0008f188:
 +
0008f1e4:
  
0005c984: [[Store/Generate Character Names]]
+
*World.Bin
  
0005cc98: [[Calculate Random Equipment]]
+
00119eec:
 
+
00119f18:
0005d0bc: [[Calculate Unit's R/S/M]]
+
00120508:
 
+
00120538:
0005da10: [[Level Up Section]]
+
00120564:
 
+
00125b98:
0005e0cc: [[Check if Random >= Chance]]
+
00125bc8:  
 
+
00125c0c:
0017d4a0: [[Determining Multi Hit Formulas (and other ugly hard coding)]]
+
00125c60:
 
+
00125ca8:
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]]
 

Revision as of 15:17, 2 March 2012

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

  • SCUS
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]]
  • Battle.bin
0017d4a0: Determining Multi Hit Formulas (and other ugly hard coding)
00180a08: 
00183078: Undead Revive, Reraise, death sentence, some brave change? some defend change?
0018eea0: Random Process (gives a number between 0-7FFF)
0019af18: 
  • Wldcore.Bin
000706c4:
00070710:
0007330c:
00077f2c:
000796d0:
00079bfc:
00079f24:
00079f60:
00079f84:
0007a02c:
00080654:
00080690:
0008baf4:
0008f188:
0008f1e4:
  • World.Bin
00119eec:
00119f18:
00120508:
00120538:
00120564:
00125b98:
00125bc8: 
00125c0c:
00125c60:
00125ca8: