Prev: F460 Up: Map Next: F4E5
F4BA: Oil: Ashes
Pour the bottle of water on the ashes.
Oil_Ashes F4BA LD A,$38 Call IsObjectInInventory with item 38: "A bottle of water.".
F4BC CALL IsObjectInInventory
F4BF JR Z,Oil_Ashes_0 Jump to Oil_Ashes_0 if the Z flag is set.
Print "You have no water.".
F4C1 LD HL,$DD37 HL=Messaging_YouHaveNoWater.
F4C4 JP PrintResponse Jump to PrintResponse.
Oil_Ashes_0 F4C7 LD A,$81 Call HandlerDestroyItemEvent with item 81: "Some hot ashes.".
F4C9 CALL HandlerDestroyItemEvent
F4CC LD HL,$AE76 Set bit 1 of *Flags_RoomChange.
F4CF SET 1,(HL)
F4D1 LD BC,$3837 Call TransformItem to transform "A bottle of water." into "A bottle.".
F4D4 CALL TransformItem
F4D7 LD A,$03 Call AddToScore with 03.
F4D9 CALL AddToScore
F4DC CALL Response_OK_GameLoop Call Response_OK_GameLoop.
Print "The ashes sizzle fiercely for a moment,then they are washed away.".
F4DF LD HL,$DDCC HL=Messaging_TheAshesSizzleFiercelyForAMoment.
F4E2 JP PrintResponse Jump to PrintResponse.
Prev: F460 Up: Map Next: F4E5