Users browsing this thread: 1 Guest(s)
terra's magitek

#19
Posts: 3
Threads: 0
Thanks Received: 0
Thanks Given: 4
Joined: Apr 2014
Reputation: 0
Status
None
I figured it out! Mostly...
The answer to the second part of my problem is that there's a second section of code that sets the actual spells selected. I modified it the same way as the other section.

So here's Edrin's modified code:
Code:
(This is the section where the visual menu is built.)
C1/4D45:    22 A4 FC 0E  JSL CE/FCA4 (Where 0E/FCA4 is the location of the moved code, remember to enter your byte words backwards, so a jump to 12/3456 goes 22 56 34 12)
C1/4D4A:    EA         NOP            (I added this line. It was missing from the example.)
C1/4D4B:    EA         NOP
C1/4D4B:    EA         NOP
C1/4D4C:    C9 0E     CMP #$0E       (Is this Wedge?) (will change this to Shadow after play testing)
C1/4D4E:    D0 10     BNE $4D60      (branch if not)

(This is the section where the actual selection is built.) (I added this section.)
C1/866D:    22 A4 FC 0E  JSL CE/FCA4 (Where 0E/FCA4 is the location of the moved code, remember to enter your byte words backwards, so a jump to 12/3456 goes 22 56 34 12)
C1/8671:    EA         NOP
C1/8672:    EA         NOP
C1/8673:    EA         NOP
C1/8674:    C9 0E     CMP #$0E       (Is this Wedge?) (will change this to Shadow after play testing)
C1/8676:    D0 08     BNE $8680      (branch if not)

(This is the remote subroutine that gets the active character's number.) (It's conveniently used for both parts above.)
CE/FCA4:    0A         ASL A
CE/FCA5:    0A         ASL A
CE/FCA6:    0A         ASL A
CE/FCA7:    0A         ASL A
CE/FCA8:    0A         ASL A
CE/FCA9:    A8         TAY
CE/FCAA:    B9 AE 2E   LDA $2EAE,Y
CE/FCAD:    6B         RTL

So here are the results of this new code:
Terra - Standard list and standard spells
Wedge - Terra's list and Terra's spells
Vicks - Terra's list and Terra's spells
Mog - Standard list and standard spells

Wedge and Vicks are weird. When I change it to $0F for Vicks, no one gets Terra's list and spells. I guess they are both tied to $0E somehow. That answers the first part of my question in my previous post, kind of...

Because when I change the byte to $0A for Mog, here's what I get:
Terra - Standard list and standard spells
Wedge - Standard list and standard spells
Vicks - Standard list and standard spells
Mog - Terra's list and Terra's spells

So it appears to work properly for Mog. Presumably it will work for Shadow or any of the other main characters.

Thanks, Edrin and the others who contributed in this thread! Hopefully this can benefit someone else as well.
  Find
Quote  



Messages In This Thread
terra's magitek - by luxador - 06-09-2013, 01:43 PM
RE: terra's magitek - by CrumpledMedal - 06-09-2013, 01:56 PM
RE: terra's magitek - by madsiur - 06-09-2013, 02:00 PM
RE: terra's magitek - by luxador - 06-09-2013, 05:10 PM
RE: terra's magitek - by madsiur - 06-09-2013, 06:28 PM
RE: terra's magitek - by Angelo26 - 06-09-2013, 06:47 PM
RE: terra's magitek - by B-Run - 06-09-2013, 08:37 PM
RE: terra's magitek - by madsiur - 06-09-2013, 09:01 PM
RE: terra's magitek - by B-Run - 06-09-2013, 09:10 PM
RE: terra's magitek - by luxador - 06-10-2013, 09:07 AM
RE: terra's magitek - by B-Run - 06-10-2013, 09:22 AM
RE: terra's magitek - by luxador - 06-10-2013, 10:03 AM
RE: terra's magitek - by B-Run - 06-10-2013, 10:07 AM
RE: terra's magitek - by Synchysi - 06-10-2013, 10:27 AM
RE: terra's magitek - by B-Run - 06-10-2013, 11:48 AM
RE: terra's magitek - by luxador - 06-10-2013, 12:15 PM
RE: terra's magitek - by B-Run - 06-10-2013, 12:18 PM
RE: terra's magitek - by yeoldeusrename - 04-06-2014, 02:46 PM
RE: terra's magitek - by yeoldeusrename - 04-08-2014, 12:05 AM
RE: terra's magitek - by B-Run - 04-08-2014, 07:31 AM
RE: terra's magitek - by yeoldeusrename - 04-11-2014, 11:14 AM
RE: terra's magitek - by Zozma - 11-26-2015, 08:40 AM
RE: terra's magitek - by Catone - 11-26-2015, 09:56 AM
RE: terra's magitek - by Zozma - 11-26-2015, 10:20 AM
RE: terra's magitek - by Catone - 11-26-2015, 11:14 AM
RE: terra's magitek - by Zozma - 11-26-2015, 11:37 AM
RE: terra's magitek - by Catone - 11-26-2015, 04:04 PM
RE: terra's magitek - by Zozma - 11-26-2015, 04:30 PM
RE: terra's magitek - by Catone - 11-27-2015, 08:21 AM
RE: terra's magitek - by Zozma - 11-27-2015, 09:27 AM
RE: terra's magitek - by Catone - 11-27-2015, 09:57 AM
RE: terra's magitek - by Zozma - 11-27-2015, 11:27 AM
RE: terra's magitek - by Catone - 11-27-2015, 12:35 PM
RE: terra's magitek - by Zozma - 11-27-2015, 02:47 PM
RE: terra's magitek - by Zozma - 11-30-2015, 12:57 PM
RE: terra's magitek - by Catone - 11-30-2015, 02:41 PM
RE: terra's magitek - by Zozma - 11-30-2015, 03:12 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite