Custom Command Help! - 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: Custom Command Help! (/thread-4022.html) |
Custom Command Help! - xDaygo - 07-07-2020 Hey! Essentially, what i want to do is: Throw -> Control with the use of a Relic. Then, I'd like to change the Control command to just the Holy spell, similar to the Health/Pray and Shock commands. Any ideas on how to make that happen? RE: Custom Command Help! - C-Dude - 07-07-2020 This has to be done with a hex editor or with ASM, but it is relatively simple. The relic side of it: Code: (Data - commands that can be replaced with other commands thanks to Relics) Once you've made that hex change, whatever relic has the "Sketch->Control" flag set will instead swap Throw for Control. Casting Holy on use of the command is a little trickier. You need to add new code to freespace for a new command that sets the spell idea to whatever spell # (in hexadecimal) Holy is, and then jump to C2/1722. Code: Freespace Then, you just need to re-point Control to use this code instead of its default. Code: C2/19E3: 76 19 (Control) Animation might be funky if we don't change its pointer too... If you try everything above and it looks funky (or the character backs away after using the command), try this: Code: C1/B791: 54BB (0E) (Control) RE: Custom Command Help! - xDaygo - 07-07-2020 Thank you for the thorough response! My only issue is I'm not entirely sure how to find said code. How to I find C2, so on and so forth> RE: Custom Command Help! - C-Dude - 07-07-2020 First, you'll need to know if your ROM has a header or not. You can sometimes figure this out by file size, or you can use a tool like NSRT to check the file. Then, you need a hex editor. HxD works very well for this purpose. Make a copy of your ROM and open it with HxD. Make sure you've got the right file open, because HxD can change ANY file, and you don't want to mess up something you don't intend. The addresses listed refer to locations in the ROM, but HxD reads them as direct file locations. Because of that, you need to subtract C00000 from any address to get its corresponding file address. In most cases, that means just dropping the "C" in front, but this will be important if you do more hex editing down the line. You go to the address specified and look at the bytes therein, which are written in hexadecimal format. Then you change those bytes to what you want. RE: Custom Command Help! - C-Dude - 07-28-2020 Try this. [attachment=493] Freespace used: C2/FBFD-C2/FC07 This patch should make any item flagged with Sketch->Control instead change Throw into Control. It should also make the Control command cast spell $0E, Pearl. This patch does NOT A) Change the name of the Control Command B) Change the name of the Pearl Spell or its effects C) Change the name or identity of items that set the command swap flag. The default remains "FakeMustache". FF3USME will still list the flag as Sketch->Control, but for whatever item that flag is set, it will instead change Throw into Control. |