Prev: 62506 Up: Map Next: 62650
62560: Oil: Plant
Water the plant from the bottle of water.
Oil_Plant 62560 LD A,56 Call IsObjectInInventory with item 56: "A bottle of water.".
62562 CALL IsObjectInInventory
62565 JR Z,Oil_Plant_0 Jump to Oil_Plant_0 if the Z flag is set.
Print "You have no water.".
62567 LD HL,56631 HL=Messaging_YouHaveNoWater.
62570 JP PrintResponse Jump to PrintResponse.
Oil_Plant_0 62573 LD BC,14391 Call TransformItem to transform "A bottle of water." into "A bottle.".
62576 CALL TransformItem
62579 LD HL,58806 HL=Data_ItemGroup_Plant.
62582 CALL CheckActiveScenicEvents Call CheckActiveScenicEvents.
62585 CP 120 Jump to Response_OK_GameLoop if A is 120.
62587 JP Z,Response_OK_GameLoop
62590 CP 133 Jump to Response_OK_GameLoop if A is 133.
62592 JP Z,Response_OK_GameLoop
62595 CP 119 Jump to Oil_Plant_1 if A is 119.
62597 JR Z,Oil_Plant_1
62599 LD BC,30327 Call TransformItem to transform "A tiny plant." into "A plant,6 feet in height.".
62602 CALL TransformItem
62605 LD A,3 Call AddToScore with 3.
62607 CALL AddToScore
62610 CALL Response_OK_GameLoop Call Response_OK_GameLoop.
Print "The plant grows swiftly then suddenly stops,at a height of six feet.".
62613 LD HL,56650 HL=Messaging_ThePlantGrowsSwiftlyThenSuddenlyStopsAt.
62616 JP PrintResponse Jump to PrintResponse.
Oil_Plant_1 62619 LD BC,30584 Call TransformItem to transform "A plant,6 feet in height." into "A massive beanstalk.".
62622 CALL TransformItem
62625 LD A,30 Write 30 to open up access to The King's Stairway from The Plant Room.
62627 LD (59742),A
62630 LD BC,34078 Call SetItemRoom with item 133 in room 30.
62633 CALL SetItemRoom
62636 LD A,2 Call AddToScore with 2.
62638 CALL AddToScore
62641 CALL Response_OK_GameLoop Call Response_OK_GameLoop.
Print "The plant grows and forms a giant beanstalk reaching upward.".
62644 LD HL,56719 HL=Messaging_ThePlantGrowsAndFormsAGiantBeanstalk.
62647 JP PrintResponse Jump to PrintResponse.
Prev: 62506 Up: Map Next: 62650