Store Reaction/Proc ID and Target

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
No Parameters - Returns Nothing

Uses the Proc ID to set a post action event instead of inflicting a status
Set Some Current Ability flags
- 0x801938c8 : set to 0x01 (Post action event?)
- 0x801938c6 : Set to Proc ID (from curent ability 0x801938da )
- 0x801938ef : Set to Target ID (post action Target ?) from curent ability 0x801938c1

Disables Knockback flags if they were enabled
---------------------------------------------------------------------------------------------------
001876e4: 27bdffe8 addiu r29,r29,-0x0018    
001876e8: 3c028019 lui r2,0x8019            
001876ec: 904238da lbu r2,0x38da(r2)        |r2 = Current Ability Proc ID  0x801938da / 801938da
001876f0: 3c048019 lui r4,0x8019            |
001876f4: 908438c1 lbu r4,0x38c1(r4)        |r4 = Current Ability Target ID
001876f8: 34030001 ori r3,r0,0x0001         |r3 = 0x01
001876fc: afbf0010 sw r31,0x0010(r29)       |
00187700: 3c018019 lui r1,0x8019            |
00187704: a42338c8 sh r3,0x38c8(r1)         |Store 0x01 in Current Ability 0x801938c8 (Post Action Event ? Not well known yet)  801938c8
00187708: 3c018019 lui r1,0x8019            |
0018770c: a42238c6 sh r2,0x38c6(r1)         |Store Proc ID in Current Ability Reaction/Proc ID  0x801938c6 / 801938c6
00187710: 3c018019 lui r1,0x8019            |
00187714: a02438ef sb r4,0x38ef(r1)         |Store Target ID in Current Ability 0x801938ef (Post Action Target ID)  801938ef
00187718: 0c062f4d jal 0x0018bd34           |-->Remove Knockback Flag Disable knockback flags if they were enabled
0018771c: 00000000 nop                      
00187720: 8fbf0010 lw r31,0x0010(r29)       
00187724: 27bd0018 addiu r29,r29,0x0018     
00187728: 03e00008 jr r31                   
0018772c: 00000000 nop                     

Return location

Battle.bin
00188bd4: 02_Dmg_(Weapon)