Difference between revisions of "Store Reaction/Proc ID and Target"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<font face='Courier New'>
+
No Parameters - Returns Nothing
Store Reaction/Proc ID and Target 1876e4: [[001876e4 - 0018772c]]
 
 
   
 
   
0018bd34: [[?Nullify steal item?]]
+
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
 
   
 
   
  001876e4: 27bdffe8 addiu r29,r29,0xffe8
+
Disables Knockback flags if they were enabled
  001876e8: 3c028019 lui r2,0x8019
+
---------------------------------------------------------------------------------------------------
  001876ec: 904238da lbu r2,0x38da(r2) Load Proc ID
+
  001876e4: 27bdffe8 addiu r29,r29,-0x0018   
  001876f0: 3c048019 lui r4,0x8019
+
  001876e8: 3c028019 lui r2,0x8019          
  001876f4: 908438c1 lbu r4,0x38c1(r4) Load Target Unit ID
+
  001876ec: 904238da lbu r2,0x38da(r2)       |{{f/load|<nowiki>r2 = Current Ability Proc ID</nowiki>}} {{f/std| 0x801938da / 801938da}}
  001876f8: 34030001 ori r3,r0,0x0001 r3 = (0x1) 1
+
  001876f0: 3c048019 lui r4,0x8019           |
  001876fc: afbf0010 sw r31,0x0010(r29) Store 0x0 onto Stack
+
  001876f4: 908438c1 lbu r4,0x38c1(r4)       |{{f/load|<nowiki>r4 = Current Ability Target ID</nowiki>}}
  00187700: 3c018019 lui r1,0x8019
+
  001876f8: 34030001 ori r3,r0,0x0001         |{{f/std|<nowiki>r3 = 0x01</nowiki>}}
  00187704: a42338c8 sh r3,0x38c8(r1) Store ? (Deals with elemental nullification)/poach (post action thing? used in reaction routine too) (half)
+
  001876fc: afbf0010 sw r31,0x0010(r29)       |
  00187708: 3c018019 lui r1,0x8019
+
  00187700: 3c018019 lui r1,0x8019           |
  0018770c: a42238c6 sh r2,0x38c6(r1) Store Reaction ID (half)
+
  00187704: a42338c8 sh r3,0x38c8(r1)         |{{f/store|Store 0x01 in Current Ability 0x801938c8 (Post Action Event ? Not well known yet)}} {{f/std| 801938c8}}
  00187710: 3c018019 lui r1,0x8019
+
  00187708: 3c018019 lui r1,0x8019           |
  00187714: a02438ef sb r4,0x38ef(r1) Store post-action target ID? (used in knockback 2)
+
  0018770c: a42238c6 sh r2,0x38c6(r1)         |{{f/store|Store Proc ID in Current Ability Reaction/Proc ID}} {{f/std| 0x801938c6 / 801938c6}}
  00187718: 0c062f4d jal 0x0018bd34 [[?Nullify steal item?]]
+
  00187710: 3c018019 lui r1,0x8019           |
  0018771c: 00000000 nop
+
  00187714: a02438ef sb r4,0x38ef(r1)         |{{f/store|Store Target ID in Current Ability 0x801938ef (Post Action Target ID)}} {{f/std| 801938ef}}
  00187720: 8fbf0010 lw r31,0x0010(r29) Load Stack + 0x10
+
  00187718: 0c062f4d jal 0x0018bd34           |{{f/jal|Remove Knockback Flag|Remove Knockback Flag}} Disable knockback flags if they were enabled
  00187724: 27bd0018 addiu r29,r29,0x0018
+
  0018771c: 00000000 nop                    
  00187728: 03e00008 jr r31 Jump to Address
+
  00187720: 8fbf0010 lw r31,0x0010(r29)      
  0018772c: 00000000 nop
+
  00187724: 27bd0018 addiu r29,r29,0x0018    
   
+
  00187728: 03e00008 jr r31                  
  </font>
+
  0018772c: 00000000 nop                    
 +
=== Return location ===
 +
  '''Battle.bin'''
 +
  00188bd4: [[02_Dmg_(Weapon)]]

Latest revision as of 19:39, 7 April 2022

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)