Difference between revisions of "Reset Highest Target Priority"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00195f6c: 24028001 addiu r2,r0,0x8001 00195f70: a482001e sh r2,0x001e(r4) 00195f74: 34020005 ori r2,r0,0x0005 00195f78: a080001c sb r0,0x001c(r...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<font face='Courier New'>
+
'''BATTLE.BIN''' :  - Reset Highest Target Priority
   
+
------------------------------------------------------------------------------------------
  00195f6c: 24028001 addiu r2,r0,0x8001
+
Parameter : AI Action Pointer (0x14 0x34 …. 0x154)
  00195f70: a482001e sh r2,0x001e(r4)
+
Return : Nothing
  00195f74: 34020005 ori r2,r0,0x0005
+
  ------------------------------------------------------------------------------------------
  00195f78: a080001c sb r0,0x001c(r4)
+
  00195f6c: 24028001 addiu r2,r0,0x8001       |
  00195f7c: a080001d sb r0,0x001d(r4)
+
  00195f70: a482001e sh r2,0x001e(r4)         |{{f/store|Initialize priority score to 0x8001}} {{f/std|AI 0x34 + 0x1e}}
  00195f80: a0820003 sb r2,0x0003(r4)
+
  00195f74: 34020005 ori r2,r0,0x0005         |
  00195f84: 03e00008 jr r31
+
  00195f78: a080001c sb r0,0x001c(r4)         |{{f/store|Initialize Action 0x1c}}
  00195f88: a0800001 sb r0,0x0001(r4)
+
  00195f7c: a080001d sb r0,0x001d(r4)         |{{f/store|Initialize Action Average Hit%}} {{f/std| AI 0x34 + 0x1d}}
</font>
+
  00195f80: a0820003 sb r2,0x0003(r4)         |{{f/store|Set Action 0x03 ti 0x05 (Targeting type)}}
 +
  00195f84: 03e00008 jr r31                   |
 +
  00195f88: a0800001 sb r0,0x0001(r4)         |{{f/store|Reset Action 0x00}}
 +
===Return locations===
 +
'''BATTLE.BIN'''
 +
  00195e0c: [[AI_Initial_Targeting_Selection]]
 +
  00195e24: [[AI_Initial_Targeting_Selection]]
 +
  00195e2c: [[AI_Initial_Targeting_Selection]]
 +
  00195e34: [[AI_Initial_Targeting_Selection]]
 +
  00195e3c: [[AI_Initial_Targeting_Selection]]
 +
  00197098: [[Compare_Set_Highest_Unit_Target_Priority_(00196fc4)]]
 +
  0019ae48: [[0019ae30_-_0019ae54]]

Latest revision as of 14:53, 15 June 2024

BATTLE.BIN :  - Reset Highest Target Priority
------------------------------------------------------------------------------------------
Parameter : AI Action Pointer (0x14 0x34 …. 0x154)
Return : Nothing
------------------------------------------------------------------------------------------
00195f6c: 24028001 addiu r2,r0,0x8001        |
00195f70: a482001e sh r2,0x001e(r4)          |Initialize priority score to 0x8001 AI 0x34 + 0x1e
00195f74: 34020005 ori r2,r0,0x0005          |
00195f78: a080001c sb r0,0x001c(r4)          |Initialize Action 0x1c
00195f7c: a080001d sb r0,0x001d(r4)          |Initialize Action Average Hit%  AI 0x34 + 0x1d
00195f80: a0820003 sb r2,0x0003(r4)          |Set Action 0x03 ti 0x05 (Targeting type)
00195f84: 03e00008 jr r31                    |
00195f88: a0800001 sb r0,0x0001(r4)          |Reset Action 0x00

Return locations

BATTLE.BIN
 00195e0c: AI_Initial_Targeting_Selection
 00195e24: AI_Initial_Targeting_Selection
 00195e2c: AI_Initial_Targeting_Selection
 00195e34: AI_Initial_Targeting_Selection
 00195e3c: AI_Initial_Targeting_Selection
 00197098: Compare_Set_Highest_Unit_Target_Priority_(00196fc4)
 0019ae48: 0019ae30_-_0019ae54