Prev: F211 Up: Map Next: F2C9
F231: Wave: Flute
Wave the silver flute.
Wave_Flute F231 LD A,$26 Call IsPlayerCarryingItem with item 26: "A silver flute.".
F233 CALL IsPlayerCarryingItem
F236 CALL Response_OK_GameLoop Call Response_OK_GameLoop.
F239 LD HL,$E52F HL=Data_ItemGroup_Bottle.
F23C CALL CheckActiveScenicEvents Call CheckActiveScenicEvents.
F23F JR NZ,Wave_Flute_0 Jump to Wave_Flute_0 if the Z flag is not set.
F241 CP $3B Jump to Wave_Flute_0 if A is 3B.
F243 JR Z,Wave_Flute_0
F245 LD B,A Copy A into B.
F246 LD C,$3B C=3B.
F248 CALL TransformItem Call TransformItem.
Print "The bottle shatters.".
F24B LD HL,$D937 HL=Messaging_TheBottleShatters.
F24E CALL PrintStringAndNewline Call PrintStringAndNewline.
Wave_Flute_0 F251 LD A,$2D Call ValidateItemPresent with item 2D: "A crystal bridge over the chasm.".
F253 CALL ValidateItemPresent
F256 JR Z,Wave_Flute_2 Jump to Wave_Flute_2 if the Z flag is set.
F258 LD A,$2E Call ValidateItemPresent with item 2E: "A crystal bridge over the chasm.".
F25A CALL ValidateItemPresent
F25D JR Z,Wave_Flute_2 Jump to Wave_Flute_2 if the Z flag is set.
F25F LD A,$3E Call ValidateItemPresent with item 3E: "Istar,held behind crystal bars.".
F261 CALL ValidateItemPresent
F264 JP Z,Wave_Mandolin_0 Jump to Wave_Mandolin_0 if the Z flag is set.
F267 LD A,$58 Call IsItemInCurrentRoom with item 58: "A jade flower.".
F269 CALL IsItemInCurrentRoom
F26C RET NZ Return if the Z flag is not set.
F26D LD A,$32 Call IsItemInCurrentRoom with item 32: "A velvet pillow.".
F26F CALL IsItemInCurrentRoom
F272 JR Z,Wave_Flute_1 Jump to Wave_Flute_1 if the Z flag is set.
F274 LD BC,$5859 Call TransformItem to transform "A jade flower." into "Some jade fragments.".
F277 CALL TransformItem
Print "The flower drops onto the hard floor and shatters.".
F27A LD HL,$D94C HL=Messaging_TheFlowerDropsOntoTheHardFloorAndShatters.
F27D JP PrintResponse Jump to PrintResponse.
Wave_Flute_1 F280 LD A,$58 Call HandlerDestroyItemEvent with item 58: "A jade flower.".
F282 CALL HandlerDestroyItemEvent
F285 LD BC,$3283 Call TransformItem to transform "A velvet pillow." into "A jade flower,resting on a velvet pillow.".
F288 CALL TransformItem
F28B LD A,$03 Call AddToScore with 03.
F28D CALL AddToScore
Print "The flower drops and gently comes to rest on the pillow.".
F290 LD HL,$D97F HL=Messaging_TheFlowerDropsAndGentlyComesToRest.
F293 JP PrintResponse Jump to PrintResponse.
Wave_Flute_2 F296 LD A,$2D Call HandlerDestroyItemEvent with item 2D: "A crystal bridge over the chasm.".
F298 CALL HandlerDestroyItemEvent
F29B LD A,$2E Call HandlerDestroyItemEvent with item 2E: "A crystal bridge over the chasm.".
F29D CALL HandlerDestroyItemEvent
F2A0 XOR A Write 00 to close the matching map exits.
F2A1 LD ($E87D),A
F2A4 LD ($E8AC),A
Print "The bridge shudders and then crumbles away.".
F2A7 LD HL,$D9B8 HL=Messaging_TheBridgeShuddersAndThenCrumblesAway.
F2AA CALL PrintStringAndNewline Call PrintStringAndNewline.
F2AD LD A,$2C Call ValidateItemPresent with item 2C: "A balrog.".
F2AF CALL ValidateItemPresent
F2B2 RET NZ Return if the Z flag is not set.
F2B3 LD A,$2C Call HandlerDestroyItemEvent with item 2C: "A balrog.".
F2B5 CALL HandlerDestroyItemEvent
F2B8 LD A,$03 Call AddToScore with 03.
F2BA CALL AddToScore
F2BD LD HL,$AE77 Set bit 2 of *Flag_BeachDug.
F2C0 SET 2,(HL)
Print "The balrog tumbles to its death.".
F2C2 LD HL,$D9E4 HL=Messaging_TheBalrogTumblesToItsDeath.
F2C5 JP PausePrintAndScroll Jump to PausePrintAndScroll.
F2C8 NOP No operation.
Prev: F211 Up: Map Next: F2C9