Users browsing this thread: 1 Guest(s)
MMMMMagic 2.0

#19
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
(07-31-2018, 02:45 PM)PowerPanda Wrote: As one final note, the readme forgets to mention this VERRRRRY important table, that tells both the battle menu and the main menu how many spells of each type there are. You will need to edit this if you plan to make custom changes. Otherwise, depending on your config menu sort order, you'll either have gaps or missing spells... probably both. 
Code:
; byte order for table below:
; Healing, Attack, Effect (HAE)
; Healing, Effect, Attack (HEA)
; Attack, Effect, Healing (AEH)
; Attack, Healing, Effect (AHE)
; Effect, Healing, Attack (EHA)
; Effect, Attack, Healing (EAH)

; (X) first slot for black magic depending on config (pulled from C2/559E)
org $C2574B
db $09,$1E,$00,$00,$1E,$15
; (X) first slot for gray magic depending on config (pulled from C2/55A4)
org $C25751
db $21,$09,$18,$21,$00,$00
; (X) first slot for white magic depending on config (pulled from C2/55AA)
org $C25757
db $00,$00,$2D,$18,$15,$2D

readme.txt Wrote:These bytes determine which magic slot is the first slot for each kind of magic, in each kind of configuration setup. Below is the baseline, this puts all of the current Black/Gray/White magic where it existed in vanilla, while any additional spells added to the spell list via this patch goes automatically at the end of the list. Due to the way the configuration byte is setup, the fourth "unallocated" magic type will always be in a static location without additional ASM work. However, it is easy to add your new magic to the black/gray/white magic lists, and have them sort into those accordingly.

C2/55B0: A936 LDA #$36 ; load offset to start of unallocated magic
C3/4F49: A936 LDA #$36 ; load offset to start of unallocated magic

first slot for black magic depending on config (pulled from C2/559E)
C2/574B: 09 ; Healing, Attack, Effect (HAE)
C2/574C: 1E ; Healing, Effect, Attack (HEA)
C2/574D: 00 ; Attack, Effect, Healing (AEH)
C2/574E: 00 ; Attack, Healing, Effect (AHE)
C2/574F: 1E ; Effect, Healing, Attack (EHA)
C2/5750: 15 ; Effect, Attack, Healing (EAH)

first slot for gray magic depending on config (pulled from C2/55A4)
C2/5751: 21 ; Healing, Attack, Effect (HAE)
C2/5752: 09 ; Healing, Effect, Attack (HEA)
C2/5753: 18 ; Attack, Effect, Healing (AEH)
C2/5754: 21 ; Attack, Healing, Effect (AHE)
C2/5755: 00 ; Effect, Healing, Attack (EHA)
C2/5756: 00 ; Effect, Attack, Healing (EAH)

first slot for white magic depending on config (pulled from C2/55AA)
C2/5757: 00 ; Healing, Attack, Effect (HAE)
C2/5758: 00 ; Healing, Effect, Attack (HEA)
C2/5759: 2D ; Attack, Effect, Healing (AEH)
C2/575A: 18 ; Attack, Healing, Effect (AHE)
C2/575B: 15 ; Effect, Healing, Attack (EHA)
C2/575C: 2D ; Effect, Attack, Healing (EAH)
Maybe not the most clear, but not forgotten. Originally I had a video to overview all of the editing, but due to circumstances of that nights stream it got chopped up and the quality was bad. Incidentally, I think I might still have it somewhere. But yeah, this bit is crucial when adding new Black/White/Gray magic when not using the plug-and-play model.
  Find
Quote  



Messages In This Thread
MMMMMagic 2.0 - by B-Run - 09-17-2016, 09:48 PM
RE: MMMMMagic 2.0 - by B-Run - 09-18-2016, 02:19 PM
RE: MMMMMagic 2.0 - by madsiur - 09-18-2016, 02:36 PM
RE: MMMMMagic 2.0 - by Lockirby2 - 09-18-2016, 04:44 PM
RE: MMMMMagic 2.0 - by Timbo - 03-07-2017, 09:46 AM
RE: MMMMMagic 2.0 - by B-Run - 03-07-2017, 11:23 AM
RE: MMMMMagic 2.0 - by Timbo - 03-07-2017, 12:02 PM
RE: MMMMMagic 2.0 - by B-Run - 03-07-2017, 02:39 PM
RE: MMMMMagic 2.0 - by Blunderpuggs - 12-24-2017, 03:50 PM
RE: MMMMMagic 2.0 - by B-Run - 05-14-2018, 08:34 PM
RE: MMMMMagic 2.0 - by PowerPanda - 07-29-2018, 11:30 PM
RE: MMMMMagic 2.0 - by madsiur - 07-29-2018, 11:41 PM
RE: MMMMMagic 2.0 - by GrayShadows - 07-30-2018, 01:01 AM
RE: MMMMMagic 2.0 - by PowerPanda - 07-30-2018, 10:16 AM
RE: MMMMMagic 2.0 - by OG Cole-Slaw - 07-30-2018, 11:50 AM
RE: MMMMMagic 2.0 - by PowerPanda - 07-30-2018, 11:16 PM
RE: MMMMMagic 2.0 - by madsiur - 07-31-2018, 12:08 AM
RE: MMMMMagic 2.0 - by PowerPanda - 07-31-2018, 02:45 PM
RE: MMMMMagic 2.0 - by B-Run - 10-13-2018, 05:01 PM
RE: MMMMMagic 2.0 - by PowerPanda - 04-19-2020, 06:39 PM
RE: MMMMMagic 2.0 - by C-Dude - 04-19-2020, 11:43 PM
RE: MMMMMagic 2.0 - by PowerPanda - 04-23-2020, 11:46 PM
RE: MMMMMagic 2.0 - by C-Dude - 04-24-2020, 12:39 AM
RE: MMMMMagic 2.0 - by PowerPanda - 04-25-2020, 11:40 AM
RE: MMMMMagic 2.0 - by C-Dude - 04-25-2020, 02:56 PM
RE: MMMMMagic 2.0 - by PowerPanda - 04-25-2020, 04:51 PM
RE: MMMMMagic 2.0 - by C-Dude - 04-25-2020, 09:08 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite