Back to Skool Routines
Prev: 26223 Up: Map Next: 26239
26224: Control character when he's knocked out of his chair
The address of this routine is placed into bytes 17 and 18 of a character's buffer by the routine at 26175 when he's knocked out of his chair.
H Number of character knocked out of chair
26224 LD L,19 Set parameter controlling the delay before the character gets up to look for another seat
26226 LD (HL),4
26228 LD L,17 Replace the address of this routine in bytes 17 and 18 of the character's buffer with that of the routine at 26239
26230 LD (HL),127
26232 CALL 25012 Update SRB for the character's current animatory state and location
26235 INC A A=animatory state of character sitting on the floor
26236 JP 24880 Update SRB for the character's new animatory state
Prev: 26223 Up: Map Next: 26239