Store main target ID and focus on target flag

From Final Fantasy Hacktics Wiki
Revision as of 13:23, 25 May 2015 by Choto (talk | contribs) (Created page with " Store main target ID + focus on target 0019490c: 3c05801a lui r5,0x801a 00194910: 8ca501f8 lw r5,0x01f8(r5) load acting units decision data 00194914: 27bdffe8 addiu r29,r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Store main target ID + focus on target
0019490c: 3c05801a lui r5,0x801a
00194910: 8ca501f8 lw r5,0x01f8(r5)		load acting units decision data
00194914: 27bdffe8 addiu r29,r29,0xffe8
00194918: afbf0010 sw r31,0x0010(r29)
0019491c: 90a20004 lbu r2,0x0004(r5)		load auto battle setting
00194920: a0a40005 sb r4,0x0005(r5)		store main target ID
00194924: 34420040 ori r2,r2,0x0040		AI flags + focus on target
00194928: 304200df andi r2,r2,0x00df		unflag stay near X/Y location
0019492c: 0c067ca9 jal 0x0019f2a4		Transfer unit coordinates to AI
00194930: a0a20004 sb r2,0x0004(r5)		store new flags
00194934: 8fbf0010 lw r31,0x0010(r29)
00194938: 27bd0018 addiu r29,r29,0x0018
0019493c: 03e00008 jr r31
00194940: 00000000 nop