Users browsing this thread: 3 Guest(s)
FFVI: Divergent Paths
07-31-2018, 11:51 PM
(07-31-2018, 11:22 PM)NPCnextdoor Wrote:(07-31-2018, 11:24 AM)PowerPanda Wrote: Note: I have some ideas for how to handle the logic for the GBA Valor spell, but I don't have the coding skills to make it happen, and it's a low priority.
How would you handle it?
When it has been talked about on these forums before, it has been talked about as a status. That won't work, as all available statuses are taken. Instead, it needs to be a spell effect. This spell effect should set a bit (possibly the upper nibble of the Desperation Attack bit). Then, I'd add a hook into this line of code, which seems to load the attack power:
Code:
(Load Magic Power / Vigor and Level)
C2/2951: AD A2 11 LDA $11A2
C2/2954: 4A LSR
C2/2955: BD 41 3B LDA $3B41,X (magic power [* 1.5])
C2/2958: 90 03 BCC $295D (Branch if not physical attack)
C2/295A: BD 2C 3B LDA $3B2C,X (vigor [* 2])
C2/295D: 8D AE 11 STA $11AE
C2/2960: 9C 89 3A STZ $3A89 (turn off random weapon spellcast)
C2/2963: 4C 21 2C JMP $2C21 (Put attacker level [or Sketcher if applicable] in $11AF)
Sometime after C2/295A, I'd check for the presence of the bit. If it was present, I'd take the X value of Vigor and double it, then clear the character's bit. Care would need to be taken to set it to 255 if it exceeded 255.
Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
« Next Oldest | Next Newest »
Users browsing this thread: 3 Guest(s)