Skool Daze Routines
31110: Make a character speak
Used by the routine at 31162.
H Character number (152-169)
31110 LD L,110 Zero out bytes 109 and 110 of the character's buffer, which normally hold the address of the next character in the submessage being spoken (when a character starts speaking, there is no submessage)
31112 XOR A
31113 LD (HL),A
31114 DEC L
31115 LD (HL),A
31116 CALL 29518 Make the character start speaking if possible
31119 JP C,25252 Jump to remove the address of this routine from bytes 105/106 of the character's buffer if he's off-screen
31122 LD L,105 Replace the address of this routine in bytes 105/106 of the character's buffer with 31116
31124 LD (HL),140
31126 RET NZ Return if somebody else is speaking at the moment
31127 LD (HL),154 Replace the address of this routine in bytes 105/106 of the character's buffer with that of 31130
31129 RET