Initialize some AI Data (mount, base hit %)

From Final Fantasy Hacktics Wiki
(Redirected from 00195f6c - 00195f88)
Jump to navigation Jump to search
BATTLE.BIN :  - Initialize some AI Data (mount, base hit %) 
------------------------------------------------------------------------------------------
Parameter : r4 = Pointer to Some AI data TABLE (see return location)
Returns nothing
------------------------------------------------------------------------------------------
Return : Return nothing
00195f6c: 24028001 addiu r2,r0,0x8001        |
00195f70: a482001e sh r2,0x001e(r4)          |Store 0x8001 at Pointer 0x001e
00195f74: 34020005 ori r2,r0,0x0005          |r2 = 5
00195f78: a080001c sb r0,0x001c(r4)          |Reset Pointer  0x001c Initialize Mount Info? (I have no idea what this is supposed to represent)
00195f7c: a080001d sb r0,0x001d(r4)          |Reset Pointer 0x001d Initialize Base Hit%
00195f80: a0820003 sb r2,0x0003(r4)          |Store 0x05 at Pointer 0x0003
00195f84: 03e00008 jr r31                    >>Jump to Address
00195f88: a0800001 sb r0,0x0001(r4)          |Initialize Pointer + 0x01

Return locations

BATTLE.BIN
 00195e0c: AI_Initial_Targeting_Selection                        8019f3c4 + 0x0054 to 0x134 (step 0x20)
 00195e24: AI_Initial_Targeting_Selection                        8019f3c4 + 0x0014
 00195e2c: AI_Initial_Targeting_Selection                        8019f3c4 + 0x0034
 00195e34: AI_Initial_Targeting_Selection                        8019f3c4 + 0x0154
 00195e3c: AI_Initial_Targeting_Selection                        8019f3c4 + 0x17fc
 00197098: Compare_Set_Highest_Unit_Target_Priority_(00196fc4)   8019f3c4 + 0x0034
 0019ae48: 0019ae30_-_0019ae54                                   8019f3c4 + 0x17fc