Transfer Considered Action Data to AI

From Final Fantasy Hacktics Wiki
Revision as of 19:27, 13 May 2023 by Orkney (talk | contribs)
Jump to navigation Jump to search
BATTLE.BIN : Transfer Considered Action Data to AI
-------------------------------------------------------------------------------------------------------
Parameters : Nothing

Returns : Nothing

- Set AI action Data at 0x80193d24 (transfer data from 0x8019389c) - 0x1e bytes
- Set Action State to 0x01
- Nullify 0x801938bc (word)
---------------------------------------------------------------------------------------------------------
0018e5e4: 27bdffe8 addiu r29,r29,-0x0018    
0018e5e8: 34020001 ori r2,r0,0x0001             |r2 = 1
0018e5ec: 3c048019 lui r4,0x8019                |
0018e5f0: 2484389c addiu r4,r4,0x389c           |Attacker's Facing Pointer  8019389c
0018e5f4: 3c058019 lui r5,0x8019                |
0018e5f8: 24a53d24 addiu r5,r5,0x3d24           |Attacker's AI Data Pointer  80193d24
0018e5fc: afbf0010 sw r31,0x0010(r29)           |
0018e600: 3c018019 lui r1,0x8019                |
0018e604: ac22f5fc sw r2,-0x0a04(r1)            |Set Action State to 0x01  8018f5fc
0018e608: 3c018019 lui r1,0x8019                |
0018e60c: ac2038bc sw r0,0x38bc(r1)             |Nullify 0x801938bc  801938bc
0018e610: 0c017895 jal 0x0005e254               |-->Store X Byte into Y Copy data from 0x0819389c - 38b9 to 0x80193d24 - 3d41
0018e614: 3406001e ori r6,r0,0x001e             |Limit = 0x1e
0018e618: 8fbf0010 lw r31,0x0010(r29)
0018e61c: 27bd0018 addiu r29,r29,0x0018
0018e620: 03e00008 jr r31
0018e624: 00000000 nop

Return Location

BATTLE.BIN
00193ff0: Main_AI_action_setup