FF6 Hacking
How can u change how commands work ? - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html)
+--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html)
+--- Thread: How can u change how commands work ? (/thread-2375.html)



How can u change how commands work ? - Locke0075 - 09-09-2013

I need to create a new command for Cyan for I used the swordtech patch and now he hits himself everytime I use any of them . I was going to change his battle menu to Fight Shock X Fight then Item but X Fight is not in the option all though X magic is . So how do I go about using a dead command into something .

Like I would lke to maybe turn a dead command into Quadra Slice .


RE: How can u change how commands work ? - madsiur - 09-09-2013

You could adapt the following code to replace and existing command since there is no ''dead'' command. Have a look at other commands in bank C2 to understand their structure and I believe Quadra Slam code would require small changes.

Quadra Slam special effect:

Code:
C2/40F1: A9 03        LDA #$03
C2/40F3: 8D 70 3A     STA $3A70   (# of attacks)
C2/40F6: A9 40        LDA #$40
C2/40F8: 04 BA        TSB $BA     (Sets randomize target)
C2/40FA: 9C A9 11     STZ $11A9   (Clears special effect)
C2/40FD: 60           RTS



RE: How can u change how commands work ? - Locke0075 - 09-09-2013

How do u get to those codes ? Hex editor ? I never saw like c2then a number when I modded ogre battle


RE: How can u change how commands work ? - B-Run - 09-09-2013

Yes, with a Hex editor. Only unless you have an editor that shows SNES notation specifically, you will see the address as 240F1. If the ROM is headered ($200 "00" at the very beginning of the ROM), the address would then be 242F1.