Are the life spells and remedy and antidote hard coded ?
#4
The game does checks based on spell number when you click on the spell in the menu. Your spell is flagged as unusable because the spell ID doesn't correspond to what is expected. You should change the spells IDs in the CMP instructions in this routine:

Code:
C3/2C1E:    C92D        CMP #$2D       (is spell Cure?)
C3/2C20:    F054        BEQ $2C76      (branch if so, check for terminal ailments)
C3/2C22:    C92E        CMP #$2E       (is spell Cure 2?)
C3/2C24:    F050        BEQ $2C76      (branch if so, check for terminal ailments)
C3/2C26:    C92F        CMP #$2F       (is spell Cure 3?)
C3/2C28:    F04C        BEQ $2C76      (branch if so, check for terminal ailments)
C3/2C2A:    C932        CMP #$32       (is spell Antdot?)
C3/2C2C:    F03F        BEQ $2C6D      (branch if so, check for poison)
C3/2C2E:    C933        CMP #$33       (is spell Remedy?)
C3/2C30:    F032        BEQ $2C64      (branch if so, check for blind, poison, and stone)
C3/2C32:    C922        CMP #$22       (is spell Float?)
C3/2C34:    F017        BEQ $2C4D      (branch if so, check for float)
C3/2C36:    C923        CMP #$23       (is spell Imp?)
C3/2C38:    F04A        BEQ $2C84      (branch if so)
C3/2C3A:    C92C        CMP #$2C       (is spell Dispel?)
C3/2C3C:    F018        BEQ $2C56      (branch if so, check for float and invis)
C3/2C3E:    8042        BRA $2C82      (otherwise flag spell as can't be used)
C3/2C40:    20132D      JSR $2D13
C3/2C43:    C930        CMP #$30       (is spell Life?)
C3/2C45:    F03D        BEQ $2C84      (branch if so)
C3/2C47:    C931        CMP #$31       (is spell Life 2?)
C3/2C49:    F039        BEQ $2C84      (branch if so)
C3/2C4B:    8035        BRA $2C82      (otherwise flag spell as can't be used)
Reply


Messages In This Thread
RE: Are the life spells and remedy and antidote hard coded ? - by madsiur - 10-19-2014, 09:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Add learning new spells doofenH 11 9,021 02-13-2020, 08:02 PM
Last Post: C-Dude
  Espers: 1 set of spells KnightDude 7 6,870 07-10-2016, 10:14 AM
Last Post: KnightDude
  A few questions regarding spells XFER 5 6,282 04-08-2014, 07:47 PM
Last Post: Cyprus
  I notice that if I move the life spell it makes life 3 not work right . Locke0075 7 7,040 02-20-2014, 11:47 PM
Last Post: madsiur

Forum Jump:


Users browsing this thread: 1 Guest(s)