Prev: 56612 Up: Map Next: 56702
56668: Print the active spell's message text
Used by the routines at 59262, 59474, 59689 and 59933.
spell message on scroll
Called from routine at 59287. This prints the relevant spell message text (at 28604) for the active spell using the text print routine at 58080.
  • The message isn't printed all at once, but appears letter by letter as gameplay continues
  • The text print routine expects the full text string length, and the screen display address in this routine is set to 56693
  • So for "PROJECT THY SOUL" (MOVE spell), instead of "P", then "R", then "O" etc. being printed, we have "P", "PR", "PRO", "PROJ" etc.
56668 LD A,(60361) Character number in the current spell message text
56671 LD C,A
56672 LD DE,(60138) Active spell message text address pointer
56676 LD A,(DE) Get length of the message text
56677 INC DE And advance to the first message text character
56678 CP C Check if we've reached the end of the text to print
56679 JR Z,56702 If so, skip the text print routine
56681 LD A,C Retrieve and increment the text counter number...
56682 INC A
56683 LD (60361),A ...and re-store
56686 LD (60065),DE Store the text address pointer
56690 LD (60067),A Number of text characters to print
56693 LD HL,20616 Set screen display address - middle of scroll, on left
56696 LD (60068),HL ...and store
56699 CALL 58080 Print text on scroll
Prev: 56612 Up: Map Next: 56702