Users browsing this thread: 1 Guest(s)
Casting Spells Taught by Espers - RESOLVED!

#3
Posts: 89
Threads: 11
Thanks Received: 3
Thanks Given: 1
Joined: Dec 2015
Reputation: 3
Status
Debrave
Thank you so much for the second pair of eyes. I appreciate all of this free help. I'm going to have to credit you as a co-author if I ever get this done

(04-05-2017, 09:39 PM)B-Run Wrote:
(04-05-2017, 12:56 PM)Turbotastic Wrote:
Code:
C2/55A3: EA              NOP
C2/55A4: EA              NOP
C2/55A5: EA              NOP
C2/55A6: EA              NOP

This sets all spells as potentially known by at least someone. While not game-breaking, this will make it so your list doesn't condense, meaning you will sometimes have large gaps in between spells. Also, i think this will give Gogo all magic during battle, which won't translate to outside of battle... i *think* anyway.



True, but I am still at the "see if I can get this to work phase." My hope is to make the added code (or a modified version) a subroutine, as it would have to be called for both loops (since the first loop would exclude the spells by default. However, I wanted to see if I could get it to work with no restrictions first.

The only thing I won't like is that Gogo will still get the benefit of using spells that aren't fully learned by other characters. Since Gogo can mimic everything, though, there's no reason to restrict him aside from balance.

(04-05-2017, 09:39 PM)B-Run Wrote: The only thing that jumps out at me here is the order you return items from the stack, you have a Y already there, then you push X then Y.... so when you are recalling the values from the stack they should be Y,X,Y. you currently have X,Y,Y which means you are exiting with the wrong X value.

At a glance, everything else seems to check out.

Happy Hacking!

Believe it or not this was the key to solving everything.

There was another BIG mistake I made, but by fixing the stack issue, the breakpoints I added returned more sensical, if unexpected, values.  From there I was able to realize I used the wrong CMP. I should have used the C3, not D3, and I corrected it with this line.

Code:
C2/647F: C3 01           CMP ($01,s)


Thank you so much! I wouldn't have gotten this far without you.
  Find
Quote  



Messages In This Thread
RE: Troubleshooting Code - by B-Run - 04-05-2017, 09:39 PM
RE: Troubleshooting Code - by Turbotastic - 04-13-2017, 12:07 AM
RE: Troubleshooting Code - by madsiur - 04-13-2017, 12:38 AM
RE: Troubleshooting Code - by seibaby - 04-13-2017, 04:20 AM
RE: Troubleshooting Code - by B-Run - 04-13-2017, 06:50 AM
RE: Troubleshooting Code - by Turbotastic - 08-06-2017, 10:30 PM
RE: Troubleshooting Code - by seibaby - 12-10-2017, 10:09 AM
RE: Troubleshooting Code - by seibaby - 08-09-2017, 06:44 PM
RE: Troubleshooting Code - by Turbotastic - 08-10-2017, 07:02 PM
RE: Troubleshooting Code - by seibaby - 08-27-2017, 01:05 PM
RE: Troubleshooting Code - by Turbotastic - 08-28-2017, 07:08 PM
RE: Troubleshooting Code - by Turbotastic - 12-10-2017, 01:42 PM
RE: Troubleshooting Code - by Turbotastic - 03-25-2018, 07:50 AM
RE: Troubleshooting Code - by Turbotastic - 03-29-2018, 11:43 PM
RE: Troubleshooting Code - by madsiur - 03-30-2018, 01:08 AM
RE: Troubleshooting Code - by Turbotastic - 03-30-2018, 01:36 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite