• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
March 28, 2024, 09:52:27 pm

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!


Changing ASM formula hack to different formula

Started by stuminator, September 18, 2021, 12:41:58 pm

stuminator

September 18, 2021, 12:41:58 pm Last Edit: October 16, 2021, 04:29:57 pm by stuminator
Hello all,

Been a lurker here for a while and have some questions about hacking.  Is there an (easy) way to take an existing formula hack, and perhaps alter the offset so that it affects a different formula?  For instance, there is this hack made by Emmy below:

<Patch name="Formula 2A - Power Split">
    <Description>Will average PA and MA stats with target.  In the case of odd numbers, difference favors the attacker.  New version - better for general use, and works with Contrary/new Finger Guard code.</Description>
    <Location file="BATTLE_BIN" offset="1229a4">
E8FFBD27
1000BFAF
19800A3C
982D4B8D
942D4C8D
902D4D8D
00000934
36000834
14000734
8C2D4E8D
38000F34
22000F11
00000000
21086801
00002290
21088801
00002390
01000934
0000A9A1
0000C9A1
2500A9A1
2500C9A1
21484300
42480900
23484900
0A002019
00000000
2108A701
000029A0
80002935
2108C701
000029A0
01000825
0100E724
E8FF0010
00000000
23480900
2108C701
000029A0
80002935
2108A701
000029A0
01000825
0100E724
DEFF0010
00000000
1000BF8F
1800BD27
0800E003
00000000
    </Location>
  </Patch>

I'd like to use this in the game, but don't want to overwrite the existing 2A formula, but have it replace, say, formula 27.  How would I go about this?
  • Modding version: PSX
  • Discord username: stuminator

Orkney

Yes, it's quite simple.

Watch this tutorial : https://ffhacktics.com/smf/index.php?topic=12477.0 : at the beginning of the first video Xifanie point to three formulas. You just have to follow the same steps with the formula you want.

  • Modding version: PSX

stuminator

Thanks, think I've got it figured out now.  I didn't know about the formula table on the wiki that showed the locations of all the formula routines.
  • Modding version: PSX
  • Discord username: stuminator