Prev: 31110 Up: Map Next: 31152
31130: Make a character speak (2)
The address of this interruptible subcommand routine is placed into bytes 105 and 106 of a character's buffer by the routine at 31110 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 (152-169)
31130 CALL 32242 Make sure the character speaks slowly
31133 PUSH HL
31134 CALL 29706 Slide one letter into the text window of the speech bubble
31137 POP HL
31138 JR NC,31146 Jump unless the character has finished speaking
31140 CALL 29746 Remove the speech bubble
31143 JP 25252 Terminate this interruptible subcommand
31146 CALL 29706 Slide another letter into the text window of the speech bubble
31149 JR C,31140 Remove the speech bubble if the character has finished speaking
31151 RET
Prev: 31110 Up: Map Next: 31152