I've been reading through the Hacking Discussion pages, looking for ideas to play with things to try etc. In an attempt not to go around mass necro posting,
Adding more commands
The biggest thing that jumps out at me here is "there's only enough space for four commands". Yes, each character has four commands stored for them, but in battle you actually have SIX commands. The four slots as well as Defend and Row. Which brings us to this post.
Battle Command Pointers
By moving one of the basic commands that all party members have (such as Fight, Item, or Magic) over to the location in the menu where Row or Def is at, you free up one or more of the four character slots effectively giving each character a greater variety of command options. It would get kinda bothersome to have to hit left or right every time you want to attack, so a lesser used command such as Item would make more sense to put on the side of the menu.
I attempted this before and never made it work. First I tried to rewrite the Row command function to act as Item, fail. Second, I tried to direct the Row command in the battle menu to the Item function, partial success then crash. Its been awhile since I've studied this but I'm thinking I still need to go earlier in the process to where "Row" is actually placed in the battle menu (as Edrin had suggested).
The moral of the story is, has anybody ever gotten this to work? As I said, I haven't studied the dis-assemblies in awhile and don't remember if the battle menu was ever mapped out or not, my papers might be outdated as well... Would appreciate any advice on the issue.
On a side note, something mentioned in the "Adding more Commands" post, in regards to swapping commands, there are relics that swap commands such as Mug and GP Rain. If you could add those traits to something that could be equipped in battle such as a shield or weapon, would the command update mid battle? I.E. equip a Thief Knife to change Steal to Mug, or say a Runic Sword that changes Fight to Runic sort of like Dragoon Boots?
It works! Well, it works enough to ask questions, "IT" being the idea of replacing Row with Item. For starters:
Changing the last line (C1/7C14) to 4C 69 57 makes it go to Item Command instead of Row Command (This being just for "window" mode, for "short" mode it seams you have to make the same change at C1/7B97). Now, at this point the item menu will open when you hit the left arrow (where Row was) allowing you to change equipment in hand, select an item, as well as select a target, however, as soon as the character attempts to use the item, the game will crash. Its obvious that something is either being done that shouldn't be, or not being done that should be (course its obvious, what other options are there?). I was leaning toward a problem with targeting...
Then I remembered that MasterZed had made a patch that changed Row into a menu with all commands from the game. Test Patch
In his patch, everything worked, including items (of course it did, look who made it). So I proceeded to go through the changes trying to find out where he cut into the normal line in order to pull up the menu. From what I saw it was the same place that I posted above, so I kept looking, then I came across this part:
Changed to this:
With that, the game doesn't crash, and an item is used. The problem? For starters WTF does that have to do with anything, and why does changing just the number fix anything? The real question is, what will that possibly screw up by putting something in 02 instead of FF (or would that actually be putting 02 somewhere instead of FF?). As is, I'm not even sure where to start testing to see what that last change screwed up. That being said, if you use anything other than a normal item (a piece of equipment or such) you get a seamingly random spell/attack (IE a poison rod summoning shiva). So yes, more work to be done indead, BUT knowing what C1/7CAC does would be a start.
*Edit* If line C1/7CAC is changed to "A9 01" all items I used functioned normally. Still no clue as to why though.
On another note, in regards to the OP to answer my own question, equiping or de-equipping an item that changes battle commands such as FIGHT in battle (by setting it as a shield) does not update commands mid battle.
Equiping Dragoon Boots as a shield out of battle does do it though, which would still leave the possibility of a Runic Sword or some such item...
*update* On this last part here, regarding changing commands mid-battle with equipable items, while researching the other part I did some reading regarding player menus updating after dmg, spells, etc to accont for being disabled by mute, imp, etc. Forcing a menu update might allow for this to work mid battle. Havent tried it though.
Adding more commands
The biggest thing that jumps out at me here is "there's only enough space for four commands". Yes, each character has four commands stored for them, but in battle you actually have SIX commands. The four slots as well as Defend and Row. Which brings us to this post.
Battle Command Pointers
By moving one of the basic commands that all party members have (such as Fight, Item, or Magic) over to the location in the menu where Row or Def is at, you free up one or more of the four character slots effectively giving each character a greater variety of command options. It would get kinda bothersome to have to hit left or right every time you want to attack, so a lesser used command such as Item would make more sense to put on the side of the menu.
I attempted this before and never made it work. First I tried to rewrite the Row command function to act as Item, fail. Second, I tried to direct the Row command in the battle menu to the Item function, partial success then crash. Its been awhile since I've studied this but I'm thinking I still need to go earlier in the process to where "Row" is actually placed in the battle menu (as Edrin had suggested).
The moral of the story is, has anybody ever gotten this to work? As I said, I haven't studied the dis-assemblies in awhile and don't remember if the battle menu was ever mapped out or not, my papers might be outdated as well... Would appreciate any advice on the issue.
On a side note, something mentioned in the "Adding more Commands" post, in regards to swapping commands, there are relics that swap commands such as Mug and GP Rain. If you could add those traits to something that could be equipped in battle such as a shield or weapon, would the command update mid battle? I.E. equip a Thief Knife to change Steal to Mug, or say a Runic Sword that changes Fight to Runic sort of like Dragoon Boots?
It works! Well, it works enough to ask questions, "IT" being the idea of replacing Row with Item. For starters:
Code:
C1/7C07: A5 05 LDA $05
C1/7C09: 29 0F AND #$0F
C1/7C0B: C9 02 CMP #$02
C1/7C0D: D0 08 BNE $7C17
C1/7C0F: E6 94 INC $94
C1/7C11: 20 A9 7C JSR $7CA9
C1/7C14: 4C 31 56 JMP $5631 (Jump to Row Command)
Changing the last line (C1/7C14) to 4C 69 57 makes it go to Item Command instead of Row Command (This being just for "window" mode, for "short" mode it seams you have to make the same change at C1/7B97). Now, at this point the item menu will open when you hit the left arrow (where Row was) allowing you to change equipment in hand, select an item, as well as select a target, however, as soon as the character attempts to use the item, the game will crash. Its obvious that something is either being done that shouldn't be, or not being done that should be (course its obvious, what other options are there?). I was leaning toward a problem with targeting...
Then I remembered that MasterZed had made a patch that changed Row into a menu with all commands from the game. Test Patch
In his patch, everything worked, including items (of course it did, look who made it). So I proceeded to go through the changes trying to find out where he cut into the normal line in order to pull up the menu. From what I saw it was the same place that I posted above, so I kept looking, then I came across this part:
Code:
C1/7CA9: 20566D JSR $6D56
C1/7CAC: A9FF LDA #$FF
C1/7CAE: 8D857A STA $7A85
C1/7CB1: 99AF2B STA $2BAF,Y
C1/7CB4: 99B02B STA $2BB0,Y
C1/7CB7: 99B32B STA $2BB3,Y
C1/7CBA: 7B TDC
C1/7CBB: 99B12B STA $2BB1,Y
C1/7CBE: 99B22B STA $2BB2,Y
C1/7CC1: 99B42B STA $2BB4,Y
C1/7CC4: 99B52B STA $2BB5,Y
C1/7CC7: 60 RTS
Code:
C1/7CAC: A902 LDA #$02
*Edit* If line C1/7CAC is changed to "A9 01" all items I used functioned normally. Still no clue as to why though.
On another note, in regards to the OP to answer my own question, equiping or de-equipping an item that changes battle commands such as FIGHT in battle (by setting it as a shield) does not update commands mid battle.
Equiping Dragoon Boots as a shield out of battle does do it though, which would still leave the possibility of a Runic Sword or some such item...
*update* On this last part here, regarding changing commands mid-battle with equipable items, while researching the other part I did some reading regarding player menus updating after dmg, spells, etc to accont for being disabled by mute, imp, etc. Forcing a menu update might allow for this to work mid battle. Havent tried it though.