A new version of FFTPatcher is available! (0.492)
Started by The Damned, October 29, 2014, 09:16:45 pm
Quote from: stuminator on September 23, 2021, 06:06:21 pmThis is pretty much it, but how would I adjust the offsets to have multiple copies of the formula each checking for a different status? <Location file="BATTLE_BIN" offset="128674">B89F1580<!--Formula 19--></Location><Location file="BATTLE_BIN" offset="F2FB8">I know how to change the first part, the offset 128674, by looking it up from the formula table, but I'm not sure how I'd need to adjust the F2FB8.
Quote from: stuminator on October 02, 2021, 07:01:33 pmActually, this wasn't anywhere near as tough as I thought it would be. I came up with a monster type check routine that utilizes the element flags and the Y field of an ability to let you mix and match all 16 monster classes so the ability can only target any combination you want. Only 1 of the existing vanilla Dragon formulas actually uses the X and Y values anyway, 5C, and I was able to create a workaround here by moving the Y value to the status effect field (not a problem since this particular formula doesn't have status effects anyway.)It uses 32 lines of code so I'd just need some free space to put this. From looking at the Allocated Space on the wiki, it appears that maybe this could go at 0x000F929C, just after Pride's last formula. Is this OK, or is there somewhere else this should go?
Quote from: stuminator on October 04, 2021, 03:51:51 pmHere are the monster type check codes:
Quote from: JadeKnightblazer on July 09, 2021, 11:19:57 amRequest: Formulas 0F and 10 (AbsMP/AbsHP) allow Status infliction.
[0x0018908c] jal 0x001885b8 # Magic evade[0x00189090] lui r10,0x8019
[0x00189094] bne r2,r0,0x00189100 # Jump to end if evaded[0x00189098] lbu r11,0x38f4(r10) [0x0018909c] jal 0x001889cc # magic accuracy check[0x001890a0] andi r11,r11,0x0020 # Check for unknown flag[0x001890a4] bne r2,r0,0x00189100 # Jump to end if accuracy fails[0x001890a8] nop [0x001890ac] bne r11,r0,0x001890cc # Jump ahead to MP section if unknown flag checked
Page created in 0.020 seconds with 24 queries.