Prev: F81F Up: Map Next: F82A
F820: Make a character walk up and down for a while
Used by the command lists at FDA0, FDB4, FDC4, FDD0, FDEA, FDF8, FE14, FE34, FE49, FE9A and FEA0.
Input
H Character number (0xD7-0xE5)
F820 LD L,$0B Set the door identifier in byte 0x0B of the character's buffer to 0xA8 (which corresponds to no door, meaning the character will not be on door duty)
F822 LD (HL),$A8
F824 INC L Set the walkabout duration counter in byte 0x0C of the character's buffer to 0xFF (meaning the character will walk up and down for a finite period instead of indefinitely)
F825 LD (HL),$FF
F827 JP $F74D Make the character begin walking up and down
Prev: F81F Up: Map Next: F82A