Difference between revisions of "Force Attack Miss"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
  Force Attack Miss (Used in Formula 0x0E)
+
No Parameters - Returns Nothing
  0018430c: 3c028019 lui r2,0x8019
+
  00184310: 8c422d90 lw r2,0x2d90(r2) Current Action Data Pointer
+
  Force attack to miss target. Update some Target Current Action flags
  00184314: 00000000 nop
+
- 0x00 : Hit flag set to 0x00
  00184318: a0400000 sb r0,0x0000(r2) Store Attack miss ?
+
- 0x02 : Evade Type set to 0x07
  0018431c: 3c038019 lui r3,0x8019
+
- 0x2a : Hit% set to 0%
  00184320: 8c632d90 lw r3,0x2d90(r3) Current Action Data Pointer
+
----------------------------------------------------------------------------------------------------------------------
  00184324: 34020007 ori r2,r0,0x0007 r2 = 0x7
+
  0018430c: 3c028019 lui r2,0x8019          
  00184328: a0620002 sb r2,0x0002(r3) Store if attack was Guarded or missed
+
  00184310: 8c422d90 lw r2,0x2d90(r2)         |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  0018432c: 3c028019 lui r2,0x8019
+
  00184314: 00000000 nop                     |
  00184330: 8c422d90 lw r2,0x2d90(r2) Current Action Datat Pointer
+
  00184318: a0400000 sb r0,0x0000(r2)         |{{f/store|Set TCA hit flag to "Miss"}}
  00184334: 03e00008 jr r31
+
  0018431c: 3c038019 lui r3,0x8019           |
  00184338: a440002a sh r0,0x002a(r2) 0% Chance to hitself
+
  00184320: 8c632d90 lw r3,0x2d90(r3)         |{{f/adr|<nowiki>r3 = TCA data pointer</nowiki>}}
 
+
  00184324: 34020007 ori r2,r0,0x0007         |{{f/std|<nowiki>r2 = 0x07</nowiki>}}
 
+
  00184328: a0620002 sb r2,0x0002(r3)         |{{f/store|<nowiki>Store TCA Evade Type = 0x07</nowiki>}}
 
+
  0018432c: 3c028019 lui r2,0x8019           |
== Return Locations ==
+
  00184330: 8c422d90 lw r2,0x2d90(r2)         |{{f/adr|<nowiki>r2 = TCA data pointer</nowiki>}}
 
+
  00184334: 03e00008 jr r31                   |
  001867b0: [[Steal Gil]]
+
  00184338: a440002a sh r0,0x002a(r2)         |{{f/store|Store 0x00 as TCA hit%}}
  00186880: [[Set EXP Stolen]]
+
=== Return Locations ===
  0018743c: [[Undead Absorb Attack]]
+
'''Battle.bin'''
  001875e4: [[Dragon Check]]
+
  001867b8: [[Steal Gil]]
00187620: [[Sleep Check]]
+
  00186888: [[Set EXP Stolen]]
0018820c: [[38 (100%)]]
+
  00187444: [[Undead Absorb Attack]]
  00188214: [[Apply_status_(to_action)]]
+
  001875ec: [[Dragon Check]]
  0018997c: [[29 OppositeSex: Hit_(MA+X)%]]
+
  00188214: [[Apply_status_(to_action)]] (aka Formula 38)
  001899f4: [[2A Hit_(MA+X)% // AffectBraveOrFaith(Y)]]
+
  00189984: [[29 OppositeSex: Hit_(MA+X)%]]
  0018a0ec: [[40 Undead: Hit_(SP+X)% ]]
+
  001899fc: [[2A Hit_(MA+X)% // AffectBraveOrFaith(Y)]]
  0018a154: [[41 Hit_(MA+X)% ]]
+
  0018a0f4: [[40 Undead: Hit_(SP+X)% ]]
  0018a79c: [[57 +Lvl(1) NS 100% Add Status on Caster]]
+
  0018a15c: [[41 Hit_(MA+X)% ]]
  0018a8f0: [[58_Generic:_Set_Morbol:_Hit(MA%2BX)%25]]
+
  0018a7a4: [[57 +Lvl(1) NS 100% Add Status on Caster]]
  0018a950: [[59 –Lvl(1) Hit (MA+X)%]]
+
  0018a8f8: [[58_Generic:_Set_Morbol:_Hit(MA%2BX)%25]]
  0018bb44: [[Set some data for current attack]]
+
  0018a958: [[59 –Lvl(1) Hit (MA+X)%]]
  0018dcf0: [[Traps Routine]]
+
  0018bb4c: [[Set some data for current attack]]
 +
  0018dcf8: [[Traps Routine]]

Latest revision as of 19:05, 6 April 2022

No Parameters - Returns Nothing

Force attack to miss target. Update some Target Current Action flags
- 0x00 : Hit flag set to 0x00
- 0x02 : Evade Type set to 0x07
- 0x2a : Hit% set to 0%
---------------------------------------------------------------------------------------------------------------------- 
0018430c: 3c028019 lui r2,0x8019            
00184310: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
00184314: 00000000 nop                      |
00184318: a0400000 sb r0,0x0000(r2)         |Set TCA hit flag to "Miss"
0018431c: 3c038019 lui r3,0x8019            |
00184320: 8c632d90 lw r3,0x2d90(r3)         |r3 = TCA data pointer
00184324: 34020007 ori r2,r0,0x0007         |r2 = 0x07
00184328: a0620002 sb r2,0x0002(r3)         |Store TCA Evade Type = 0x07
0018432c: 3c028019 lui r2,0x8019            |
00184330: 8c422d90 lw r2,0x2d90(r2)         |r2 = TCA data pointer
00184334: 03e00008 jr r31                   |
00184338: a440002a sh r0,0x002a(r2)         |Store 0x00 as TCA hit%

Return Locations

Battle.bin
001867b8: Steal Gil
00186888: Set EXP Stolen
00187444: Undead Absorb Attack
001875ec: Dragon Check
00188214: Apply_status_(to_action) (aka Formula 38)
00189984: 29 OppositeSex: Hit_(MA+X)%
001899fc: 2A Hit_(MA+X)% // AffectBraveOrFaith(Y)
0018a0f4: 40 Undead: Hit_(SP+X)% 
0018a15c: 41 Hit_(MA+X)% 
0018a7a4: 57 +Lvl(1) NS 100% Add Status on Caster
0018a8f8: 58_Generic:_Set_Morbol:_Hit(MA+X)%
0018a958: 59 –Lvl(1) Hit (MA+X)%
0018bb4c: Set some data for current attack
0018dcf8: Traps Routine