Prev: 60107 Up: Map Next: 60143
60129: Data buffer - spell data
60129 DEFB 0 Spell selection status byte. Checked at 58955. Set to:
  • 0 at new game data initialization (49371)
  • 8 after spell names printed on scroll (58994)
  • 24 after energy bar printed (59257)
  • 32 when MOVE spell selected (59397)
  • 48 when SERVANT/other cursor spell cast (59466)
  • 56 when active 'effect' spell deactivated (59933)
60130 DEFB 0 Store for spell counter used in checking spells collected at 59070
60131 DEFW 0 Store for address pointer to the start and/or current spell list text at 28156 (copied from 60261 at 49409)
Used to determine spells to print when the player presses up or down in the spell menu
60133 DEFB 0 Temp store for spell counter byte at 60130, copied at start of routine at 57139
60134 DEFB 0 Spell number counter (for spell list at 28604)
Used to print relevnat spell message on scroll at 59219
Set at 57245 - spell number 3 on the scroll (pointed at by the scroll arrow)
60135 DEFB 0,0 Address pointer for selected/highlighted spell (28156). The 16 bytes of spell data are copied to/from a buffer at 60357
60137 DEFB 0 Currently active 'effect' spell (e.g. UNSEEN, SHIELD) - from 0-27 (0 = no effect spell) from spell list at 28156
Set to 255 at 59973 if deactivated effect spell is SHIELD, PROTECT or DEFENCE - this tells the routine at 54461 to erase any on screen 'barrier' graphics
60138 DEFW 0 Address pointer for active spell message text (28604)
Also used for level text (29042), as only one or the other appears on the scroll at any one time
60140 DEFB 0 Temp store for spell number pointer (60134)
Also used for cast spell number, checked at 55283
60141 DEFB 0 - (unused)
60142 DEFB 0 - (unused)
Prev: 60107 Up: Map Next: 60143