| Routines

31834: Place a continual subcommand routine address into a character's buffer

Used by command lists 140, 142, 148, 150, 156, 158, 164, 166, 172, 174, 178, 180, 182, 192, 194, 214, 216, 218 and 220. Collects a continual subcommand routine address from a command list and places it into bytes 124 and 125 of the character's buffer. The routine address will be one of the following:
Address | Description
--- | ---
28446 | Make ANGELFACE hit now and then
28672 | Make BOY WANDER fire his catapult now and then
32234 | Make a character walk fast
64042 | Check whether ANGELFACE is touching ERIC
Input
H | Character number (152-169)
31834 | NOP |
31835 | NOP |
31836 | NOP |
31837 | NOP |
31838 | LD L,124 | Collect the address of the continual subcommand routine from the command list and place it into bytes 124 and 125 of the character's buffer
31840 | CALL 24972
31843 | LD (HL),A
31844 | INC L
31845 | CALL 24972
31848 | LD (HL),A
31849 | JP 25226 | Move to the next command in the command list