Back to Skool Routines
31128: Make female character jump up or down or remain on chair
Used by the routine at 31078.
H Character number (183-189, 204 or 209)
31128 LD L,21 Bit 0 of byte 21 of the character's buffer is set if she's standing on a chair
31130 BIT 0,(HL)
31132 RET NZ Return if she is standing on a chair
31133 CALL 25012 Update SRB for the character's current animatory state and location
31136 LD L,19 The counter at byte 19 is even if the character is in the air, odd if she's got her feet on the floor
31138 INC D Down a level
31139 BIT 0,(HL) Is this character in the air at the moment?
31141 JR Z,31145 Jump if so
31143 DEC D Up a level
31144 DEC D
31145 JP 24880 Update SRB for the character's new y-coordinate (in D)