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

#18
Posts: 617
Threads: 49
Thanks Received: 0
Thanks Given: 5
Joined: Feb 2017
Reputation: 25
Status
None
Okay, I have MMMMMagic fully working in C4. There were a few more sections that did not respond to the org changes. There may be more, but I was hitting so many crashes that I decided to relocate my other code changes instead of continuing to fight with this one.

Code:
; <> learn Spell (from C2/620F, F3/032F)
org !freespaceF3+342
LearnSpell_C2()
php                        ; backup processor status
jsl $F301E0                ; reverse spell lookup (find index for spell number)  <-----This should just be the variable !freespacef3

Finally, this pointer table is all based off of the offsets from !freespaceC2
Code:
; (X) pointers for how to trim spell list (from C2/56F3)
org $C2575D
dw $67EF                ; gogo-esque magic
dw $67E4                ; no spells usable
dw $67C0                ; normal magic trimming


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


Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
  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: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite