Modding => PSX FFT Hacking => Topic started by: bht on January 28, 2014, 01:48:38 pm
Title: A formula request.
Post by: bht on January 28, 2014, 01:48:38 pm
If it's simple enough, could anyone make an ASM that turns either 27-Steal Gil or 28-Steal Exp (if one of them happens to be easier) into: (MA+PA)/2*Y Status ME (Magic Attack/Defend Up, Shell) (and works outside of ePSXe). Thanks.
Title: Re: A formula request.
Post by: bht on January 29, 2014, 08:01:37 pm
If it helps, I've been using one for another spell that is -almost- what I want: Drawout to (MA+PA)/2*Y by Pride
I basically need the Formula 20 from there, just on a different slot, magic-evadeable and not tied to the Katana Inventory. If there is an issue with Steal Gil/Exp, there's several others I'm not using, those two were just the first to pop to mind. Thanks again.
Title: Re: A formula request.
Post by: Glain on February 16, 2014, 07:35:22 pm
So I figured I'd randomly do an ASM request...
I think this should work. This patch will replace the Steal Exp formula with the one you mentioned. I don't have anything to test with except emulators (tested with pSX) so you'll have to let me know if it works for you.
lui t0, 0x8019 lw t1, 0x2d94(t0) # Load Attacker's Stats lbu t2, 0x38fa(t0) # Load Ability Y lbu t3, 0x0037(t1) # Load Attacker's MA lbu t4, 0x0036(t1) # Load Attacker's PA sh t2, 0x38d0(t0) # Store Ability Y as YA
addu t5, t3, t4 addiu t5, t5, 1 sra t5, t5, 1 sh t5, 0x38ce(t0) # Store (PA + MA) / 2 as XA