Prev: 666F Up: Map Next: 667F
6670: Deal with a character who's been dethroned (1)
The address of this uninterruptible subcommand routine is placed into bytes 0x11 and 0x12 of a character's buffer by the routine at 663F when he's been knocked out of a chair.
Input
H Dethroned character's number (0xB7-0xD1)
6670 LD L,$13 Set the parameter controlling the delay before the character gets up to look for another seat
6672 LD (HL),$04
6674 LD L,$11 Replace the address of this routine in bytes 0x11 and 0x12 of the character's buffer with 667F
6676 LD (HL),$7F
6678 CALL $61B4 Update the SRB for the character's current animatory state and location
667B INC A A=animatory state of character sitting on the floor
667C JP $6130 Update the character's animatory state and update the SRB
Prev: 666F Up: Map Next: 667F