Prev: 7986 Up: Map Next: 79B0
799A: Make a character speak (2)
The address of this interruptible subcommand routine is placed into bytes 0x69 and 0x6A of a character's buffer by the routine at 7986 just after the speech bubble has been printed above the character's head. It controls the character until he has finished speaking, and then removes the speech bubble.
Input
H Character number (0x98-0xA9)
799A CALL $7DF2 Make sure the character speaks slowly
799D PUSH HL
799E CALL $740A Slide one letter into the text window of the speech bubble
79A1 POP HL
79A2 JR NC,$79AA Jump unless the character has finished speaking
79A4 CALL $7432 Remove the speech bubble
79A7 JP $62A4 Terminate this interruptible subcommand
79AA CALL $740A Slide another letter into the text window of the speech bubble
79AD JR C,$79A4 Remove the speech bubble if the character has finished speaking
79AF RET
Prev: 7986 Up: Map Next: 79B0