Prev: 63409 Up: Map Next: 63437
63423: Make a character open a door that has been knocked on
Used by the command lists at 64846, 65059, 65112 and 65143. Opens the door that the character is standing behind, and then rewinds the command list such that the character returns to the spot where he was walking up and down before going to answer the door.
Input
H Character number (215-229)
63423 PUSH HL Save the character number briefly
63424 CALL 62252 Open the door
63427 POP HL Restore the character number to H
63428 LD L,22 Byte 22 of the character's buffer holds the offset of the point reached in the command list
63430 LD A,(HL) Subtract 14 from this offset; this has the effect of sending the character back to the spot where he was walking up and down before answering the door
63431 SUB 14
63433 LD (HL),A
63434 JP 62080 Terminate this primary command
Prev: 63409 Up: Map Next: 63437