Users browsing this thread: 1 Guest(s)
Changing physical damage calculations?
04-21-2012, 04:04 PM
It took a long time to figure it out, but I think I did, even if the results are a little sloppy. Starting at C2:6669, I copied (and adjusted for branching and spell ID) the code that Madsiur came up with, and then added to it the code used by the Magicite item (whose data immediately follows the Tempest's Wind Slash ability), right up to the RTS. I then used the Soul Sabre's pointer to point to the first line of data that the code used (6669, so 69 46). It seems to work like a charm. This is what it looks like, somewhat:
Would I be correct in assuming that everything between the final BRA and the RTS could safely be shorn from the code? They refer specifically to the Magicite item's functions, which obviously aren't used here. The ability works perfectly as it is, and I know I'm probably preaching to the choir, but getting those results felt *fantastic*.
Code:
starting at C2/6669:
20 5A 4B JSR (Random Number Function: 0 to 255)
C9 80 CMP (compare to 128)
B0 1B BCS (50% chance exit function)
20 5A 4B JSR (Random Number Function: 0 to 255)
C9 80 CMP (compare to 64)
B0 04 BCS (25% chance branch)
A9 BC LDA (Magnitude8 spell number 75% chances)
80 02 BRA (branch to clear battle power)
A9 D9 LDA (Megathrust spell number 25% chances)
9C A6 11 STZ (clear battle power)
80 03 BRA (branch to store the spell number)
20 DC 37 JSR (Picks random Esper, not Odin or Raiden)
8D 00 34 STA (Save the spell number)
EE 70 3A INC (Increment the number of attacks remaining)
60 RTS
Would I be correct in assuming that everything between the final BRA and the RTS could safely be shorn from the code? They refer specifically to the Magicite item's functions, which obviously aren't used here. The ability works perfectly as it is, and I know I'm probably preaching to the choir, but getting those results felt *fantastic*.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)