![]() |
Routines |
| Prev: 62950 | Up: Map | Next: 63120 |
|
Read the wand.
|
||||
| Read_Wand | 62993 | LD A,36 | Call IsPlayerCarryingItem with item 36: "A wand.". | |
| 62995 | CALL IsPlayerCarryingItem | |||
| 62998 | LD HL,44664 | Jump to Read_Wand_0 if bit 1 of *Flag_TurnScratch is set. | ||
| 63001 | BIT 1,(HL) | |||
| 63003 | JR NZ,Read_Wand_0 | |||
|
Print "A strange force stops you.".
|
||||
| 63005 | LD HL,53900 | HL=Messaging_AStrangeForceStopsYou. | ||
| 63008 | JP PrintResponse | Jump to PrintResponse. | ||
| Read_Wand_0 | 63011 | LD A,(44749) | A=*CurrentRoom. | |
| 63014 | CP 22 | Jump to Read_Wand_1 if A is not 22. | ||
| 63016 | JR NZ,Read_Wand_1 | |||
| 63018 | LD A,41 | Call ValidateItemPresent with item 41: "A spirit.". | ||
| 63020 | CALL ValidateItemPresent | |||
| 63023 | JP NZ,Response_NothingHappens | Jump to Response_NothingHappens if the Z flag is not set. | ||
| 63026 | LD A,41 | Call HandlerDestroyItemEvent with item 41: "A spirit.". | ||
| 63028 | CALL HandlerDestroyItemEvent | |||
| 63031 | LD A,21 | Write 21 to open westbound access to The King's Anteroom from The Hall of Wisdom. | ||
| 63033 | LD (59501),A | |||
| 63036 | LD A,3 | Call AddToScore with 3. | ||
| 63038 | CALL AddToScore | |||
|
Print "The wand emits a shaft of
shimmering blue light.The beam
strikes the spirit and with a
wail,it dissipates.".
|
||||
| 63041 | LD HL,57348 | HL=Messaging_TheWandEmitsAShaftOfShimmeringBlueLight. | ||
| 63044 | JP PrintResponse | Jump to PrintResponse. | ||
| Read_Wand_1 | 63047 | CP 25 | Jump to Read_Wand_3 if A is not 25. | |
| 63049 | JR NZ,Read_Wand_3 | |||
| 63051 | LD A,45 | Call ValidateItemPresent with item 45: "A crystal bridge over the chasm.". | ||
| 63053 | CALL ValidateItemPresent | |||
| 63056 | JP Z,Response_NothingHappens | Jump to Response_NothingHappens if the Z flag is set. | ||
| Read_Wand_2 | 63059 | LD BC,11545 | Call SetItemRoom with item 45 in room 25. | |
| 63062 | CALL SetItemRoom | |||
| 63065 | LD BC,11809 | Call SetItemRoom with item 46 in room 33. | ||
| 63068 | CALL SetItemRoom | |||
| 63071 | LD A,33 | Write 33 to open southbound access to The Stair Room from The Vast Hall. | ||
| 63073 | LD (59517),A | |||
| 63076 | LD A,25 | Write 25 to open northbound access to The Vast Hall from The Stair Room. | ||
| 63078 | LD (59564),A | |||
|
Print "In a dazzle of glory,a crystal
bridge appears across the
chasm.".
|
||||
| 63081 | LD HL,57455 | HL=Messaging_InADazzleOfGloryACrystalBridgeAppears. | ||
| 63084 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| 63087 | LD HL,44663 | Return if bit 2 of *Flag_BeachDug is set. | ||
| 63090 | BIT 2,(HL) | |||
| 63092 | RET NZ | |||
| 63093 | LD A,44 | Call HandlerUpdateItemEventForTheCurrentRoom with item 44: "A balrog.". | ||
| 63095 | CALL HandlerUpdateItemEventForTheCurrentRoom | |||
| 63098 | XOR A | Write 0 to close the southbound exit from The Vast Hall. | ||
| 63099 | LD (59517),A | |||
| 63102 | LD A,2 | Call AddToScore with 2. | ||
| 63104 | CALL AddToScore | |||
|
Print "There is a balrog on the bridge,
preventing your passage.".
|
||||
| 63107 | LD HL,57520 | HL=Messaging_ThereIsABalrogOnTheBridgePreventing. | ||
| 63110 | JP PrintResponse | Jump to PrintResponse. | ||
| Read_Wand_3 | 63113 | CP 33 | Jump to Read_Wand_2 if A is 33. | |
| 63115 | JR Z,Read_Wand_2 | |||
| 63117 | JP Response_DontBeRidiculous | Jump to Response_DontBeRidiculous. | ||
| Prev: 62950 | Up: Map | Next: 63120 |