Prev: 30842 Up: Map Next: 30916
30874: Have a character help if possible
Used by the routine at 55726.
30874 CALL 33725 Display "[Character] IS ASLEEP" window and jump to main game loop if Current Character is asleep, else return here and continue
30877 LD A,32 Load A with 32 (ASCII code for SPACE)...
30879 LD (42169),A ...and append onto end of "[Character] CANNOT HELP YOU" text at 42166
30882 CALL 33546 Point IX at Current Character's current stats
30885 BIT 7,(IX+3) If character's can-help flag is reset...
30889 JP Z,55252 ...then display "[Character] CANNOT HELP YOU" window (29) and return to game
30892 LD A,(IX+2) If character's stamina is less than 10...
30895 AND 127 ...
30897 CP 10 ...
30899 JP C,55257 ...then display "[Character] IS TOO TIRED TO HELP YOU" window (29) and return to game
30902 LD B,10 If character's happiness is less than 10 then show "[Character] DOES NOT WANT TO BE COMMANDED..." and jump to main game loop...
30904 CALL 33558 ...
30907 LD A,(29632) Load A with index of Current Character
30910 LD HL,30916 Point HL at start of table of addresses of characters' help routines
30913 JP 55726 Advance HL by A words, load HL with word at location HL as address and jump to it
Prev: 30842 Up: Map Next: 30916