Prev: 45094 Up: Map Next: 45131
45095: Process command to smell something
Used by the routine at 64623.
45095 LD IX,24848 Point IX at start of Magic Knight's current inventory (carrying)
45099 LD B,5 Load B with 5 (five inventory slots)
45101 LD HL,51920 Point HL at "[Current Command] WHICH OBJECT ?" text
45104 LD DE,51928 Point DE at "[Current Command] THE " text
45107 CALL 45809 Show list of objects in Magic Knight's inventory (carrying) as a menu and load A with selected item index
45110 LD HL,24848 Point HL at start of Magic Knight's current inventory (carrying)
45113 CALL 45766 Print name of selected object in Magic Knight's current inventory (carrying) in command summary window
45116 CALL 64207 Display execute / reject command window and return here if execute chosen, else exit to main game loop
45119 LD A,(41779) Load A with index of Current Object...
45122 CALL 45685 ...and if this is 4 (Teddy Bear) then display "THE BEAR SAYS..." message and wait for fire to be pressed
45125 LD HL,57501 Point HL at "YOU CAN SMELL NOTHING BECAUSE YOUR NOSE IS BLOCKED!" text
45128 JP 64297 Display "YOU CAN SMELL NOTHING..." window (12) and return to game
Prev: 45094 Up: Map Next: 45131