ASM coding - Checking battle command in use
#5
That's the thing though, with $B5 I was either getting 0 or the correct value. All based on how that character's turn was started, as far as I could tell.

Well, actually yeah it does make sence with that. When I would switch characters with the X button, it would return the correct value (depending on what command I selected to start that code from), but when I let the battle meter fill up and start that character's turn directly, it would clear it... somehow.

Even then, it should still have had a value after I selected the command in battle. I don't see how it was cleared in one instance, yet correct in another instance, nothing should have effected it (let alone cleared it) from the time I selected the command until the window opened.

Right now, its working by checking a bit stored earlier in the command execution code. I did have one instance, after changing it, that it returned a 0 value when I tried to check it. I couldn't get it to do it again though. Still going to add this to my list of things to investigate next time I'm fealing really stuborn.

Actually probably going to try that tomorrow morning, left an extra byte or two free here and there in the code for modification room. Should be able to drop that command inline and see what it is without chamging anything. Now I have to wonder what it'll show.
The only true wisdom is knowing you know nothing.
Reply


Messages In This Thread
RE: ASM coding - Checking battle command in use - by Catone - 11-30-2015, 03:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SNES / GBA / C coding Resources madsiur 5 28,902 04-08-2022, 06:16 PM
Last Post: steve
  Question: Changing a Battle Command to a single spell Morendo 11 9,105 04-23-2020, 04:53 PM
Last Post: Morendo
  Checking inventory for an item Morendo 2 2,130 12-31-2019, 09:13 AM
Last Post: madsiur
  Current Party GP Checking and High Prices Catone 5 5,563 01-21-2015, 08:13 PM
Last Post: Gi Nattak
  Battle Command Repurposing revclayton 2 3,228 10-11-2013, 05:51 PM
Last Post: revclayton
  Battle command pointers and general question Catone 14 17,529 04-04-2013, 04:40 PM
Last Post: madsiur

Forum Jump:


Users browsing this thread: