Get next acting unit

From Final Fantasy Hacktics Wiki
Revision as of 00:57, 2 January 2025 by Nyzer (talk | contribs) (Linked the jals)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

0007171c: 27bdffe0 addiu r29,r29,0xffe0
00071720: afb00010 sw r16,0x0010(r29)
00071724: 00808021 addu r16,r4,r0
00071728: afbf0018 sw r31,0x0018(r29)
0007172c: 0c01bbbc jal 0x0006eef0                      Set Game Flow Variable to 0
00071730: afb10014 sw r17,0x0014(r29)
00071734: 3402000a ori r2,r0,0x000a
00071738: 3c018009 lui r1,0x8009
0007173c: ac2260e4 sw r2,0x60e4(r1)
00071740: 0c060d51 jal 0x00183544			Calculate AT List and Get Specific Unit ID
00071744: 02002021 addu r4,r16,r0
00071748: 00408021 addu r16,r2,r0			
0007174c: 06000015 bltz r16,0x000717a4
00071750: 00000000 nop
00071754: 0c01e9c9 jal 0x0007a724			Get unit misc data that matches r4 ID
00071758: 320400ff andi r4,r16,0x00ff
0007175c: 00408821 addu r17,r2,r0
00071760: 32020100 andi r2,r16,0x0100
00071764: 10400009 beq r2,r0,0x0007178c		branch if not charging an ability
00071768: 00000000 nop
0007176c: 0c01a106 jal 0x00068418                      X/Y Data Gathering for Attacks - determines where the cursor/camera goes
00071770: 02202021 addu r4,r17,r0
00071774: 8e240134 lw r4,0x0134(r17)		r4 = unit data
00071778: 0c05eabe jal 0x0017aaf8			Calculate Targeting for Menu Types
0007177c: 2484016e addiu r4,r4,0x016e		r4 = unit targeting data
00071780: 34040007 ori r4,r0,0x0007
00071784: 0801c5e7 j 0x0007179c
00071788: 34050003 ori r5,r0,0x0003
0007178c: 0c01a0f9 jal 0x000683e4                      Transfer Unit's X/Y/Map Level
00071790: 02202021 addu r4,r17,r0
00071794: 00002021 addu r4,r0,r0
00071798: 00002821 addu r5,r0,r0
0007179c: 0c03b1c6 jal 0x000ec718                      Background Tile Color For Targeting/Movement (Partial Tiles)
000717a0: 00000000 nop
000717a4: 0c01b957 jal 0x0006e55c                      Store Name and data of unit selected by cursor
000717a8: 00000000 nop
000717ac: 0c01a0f0 jal 0x000683c0                      Store AT list ID = 1
000717b0: 00000000 nop
000717b4: 8fbf0018 lw r31,0x0018(r29)
000717b8: 8fb10014 lw r17,0x0014(r29)
000717bc: 8fb00010 lw r16,0x0010(r29)
000717c0: 27bd0020 addiu r29,r29,0x0020
000717c4: 03e00008 jr r31
000717c8: 00000000 nop