Prev: 31763 Up: Map Next: 31842
31804: Make current character go away if possible
Used by the routine at 31636.
31804 CALL 34350 Check if Current Character is asleep and display "[CHARACTER] IS ASLEEP" window if so
31807 LD A,(30615) Load A with index of Current Character
31810 LD E,0 Point HL at strength...
31812 CALL 34174 ...of character whose index is A
31815 PUSH HL Switch pointer from HL to IX...
31816 POP IX ...
31818 LD A,(IX+2) Load A with stamina of Current Character...
31821 CP 20 ...and if this is anything less than 20...
31823 JP C,34508 ...then display "[CHARACTER] IS TOO TIRED TO GO AWAY" window and exit
31826 LD A,(IX+1) Load A with the happiness of Current Character...
31829 CP 20 ...and if this is anything up to 20...
31831 JP C,34490 ...then display "[CHARACTER] DOES NOT WANT TO BE COMMANDED BY YOU" window and exit
31834 CALL 34402 Point HL at current position data for Current Character
31837 LD (HL),99 Change current room number for Current Character to 99
31839 JP 34750 Display "[CHARACTER] HAS GONE AWAY" window
Prev: 31763 Up: Map Next: 31842