Users browsing this thread: 1 Guest(s)
Magic List and Related Stuff

#8
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(11-30-2015, 10:13 PM)Fenrir Wrote: Is there an easier way, such as moving the spell ids of Rasp and Osmose into the list of Attack spells.

There is no "spell IDs" data to begin with, meaning fire does not have a byte that contains "0x00" as ID. The sorting is done in the simplest way, in order of the spells according to spell data and the last spell ID is hardcoded to delimiter the categories (black, grey, white). The menu sorting is done in the following code:

Code:
C2/55B2: AD 54 1D     LDA $1D54    (info from Config screen)
                                   (Bit 7 = Controller: 0 = Single, 1 = Multiple
                                    Bit 6 = ???
                                    Bits 3-5 = Window Color adjustment cursor:
                                      000b = Font, 001b = 1st Window component,
                                      010b = 2nd Window component, 011b = 3rd ' ' ,
                                      100b = 4th ' ' , 101b = 5th ' ' ,
                                      110b = 6th ' ' , 111b = 6th ' '
                                    Bits 0-2 = Magic Order:
                                      000b = Healing, Attack, Effect (HAE) ,
                                      001b = HEA , 010b = AEH, 011b = AHE ,
                                      100b = EHA , 101b = EAH )
C2/55B5: 29 07        AND #$07     (isolate Magic Order)
C2/55B7: AA           TAX
C2/55B8: A0 35        LDY #$35
C2/55BA: B9 34 30     LDA $3034,Y    (get spell #)
C2/55BD: C9 18        CMP #$18       (compare to 24.  if it's 0-23, it's Attack
                                      magic [Black].)
C2/55BF: B0 06        BCS $55C7      (branch if it's 24 or higher)
C2/55C1: 7F 4B 57 C2  ADC $C2574B,X  (add spell # to amount to adjust Attack
                                      spells positioning based on current
                                      Magic Order)
C2/55C5: 80 12        BRA $55D9
C2/55C7: C9 2D        CMP #$2D       (compare to 45.  if it's 24-44, it's Effect
                                      magic [Gray].)
C2/55C9: B0 06        BCS $55D1      (branch if it's 45 or higher)
C2/55CB: 7F 51 57 C2  ADC $C25751,X  (add spell # to amount to adjust Effect
                                      spells positioning based on current
                                      Magic Order)
C2/55CF: 80 08        BRA $55D9
C2/55D1: C9 36        CMP #$36       (compare to 54.  if it's 45-53, it's Healing
                                      magic [White].)
C2/55D3: B0 0B        BCS $55E0      (branch if it's 54 or higher, which apparently
                                      means it's not a Magic spell at all.)
C2/55D5: 7F 57 57 C2  ADC $C25757,X  (add spell # to amount to adjust Healing
                                      spells positioning based on current
                                      Magic Order)

Not sure if you change/expand categories/write a conditional to include a certain spell in another category that the spell icon will follow. It worth a try though.
  Find
Quote  



Messages In This Thread
Magic List and Related Stuff - by Fenrir - 11-30-2015, 10:13 PM
RE: Magic List and Related Stuff - by Zozma - 12-01-2015, 02:50 AM
RE: Magic List and Related Stuff - by Catone - 12-01-2015, 07:34 AM
RE: Magic List and Related Stuff - by Zozma - 12-01-2015, 12:19 PM
RE: Magic List and Related Stuff - by Catone - 12-01-2015, 12:40 PM
RE: Magic List and Related Stuff - by Zozma - 12-01-2015, 12:45 PM
RE: Magic List and Related Stuff - by Catone - 12-01-2015, 01:58 PM
RE: Magic List and Related Stuff - by madsiur - 12-01-2015, 06:57 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite