![]() |
Routines |
| Prev: 997F | Up: Map | Next: 9A2E |
|
Touch the crystal rod to the plate and open the way south.
|
||||
| ActionTouch | 99DD | CALL Parser_ValidateDirectObject | Return if the command does not name a single object. | |
| 99E0 | RET C | |||
| 99E1 | CP $02 | Jump to ActionTouch_Step1 when the command names at least 02 nouns. | ||
| 99E3 | JR NC,ActionTouch_Step1 | |||
|
Print "Please be more specific.".
|
||||
| 99E5 | LD HL,$642C | HL=Messaging_PleaseBeMoreSpecific. | ||
| 99E8 | JR ActionTouch_Loop2 | Jump to ActionTouch_Loop2. | ||
|
Print "It has no apparent effect.".
|
||||
| ActionTouch_Loop1 | 99EA | LD HL,$7D50 | HL=Messaging_ItHasNoApparentEffect. | |
| ActionTouch_Loop2 | 99ED | CALL PrintStringAndANewline | Call PrintStringAndANewline. | |
| 99F0 | RET | Return. | ||
|
Was the player trying to touch the plate with the crystal rod?
|
||||
| ActionTouch_Step1 | 99F1 | LD HL,$8B34 | Jump to ActionTouch_Step3 unless the command matches the phrase at 8B34 (A crystal rod. (03)). | |
| 99F4 | CALL Parser_AdvanceToSeparator | |||
| 99F7 | JR NZ,ActionTouch_Step3 | |||
| 99F9 | LD A,$03 | |||
| 99FB | CALL IsObjectCarried | |||
| 99FE | JR Z,ActionTouch_Step2 | |||
| 9A00 | LD HL,$7A59 | Print You're not carrying on the same line. | ||
| 9A03 | CALL PrintString | |||
|
Print "a rod".
|
||||
| 9A06 | LD HL,$7654 | HL=Messaging_ARod. | ||
| 9A09 | JP ActionTouch_Loop2 | Jump to ActionTouch_Loop2. | ||
| ActionTouch_Step2 | 9A0C | LD A,$17 | Jump back to ActionTouch_Loop1 when A panel with a square plate to one side. (17) is not here or being carried. | |
| 9A0E | CALL IsObjectInCurrentRoom | |||
| 9A11 | JP NZ,ActionTouch_Loop1 | |||
| 9A14 | LD BC,$1700 | Move A panel with a square plate to one side. (17) to nowhere (00). | ||
| 9A17 | CALL UpdateObjectLocation | |||
| 9A1A | LD BC,$1817 | Move The southern exit has a square plate to the side of it. (18) to room 17: " The Mirrored Room". | ||
| 9A1D | CALL UpdateObjectLocation | |||
|
This action changes the map:
|
||||
| 9A20 | LD A,$1C | Open the south exit of The Mirrored Room onto The Crystal Chamber. | ||
| 9A22 | LD ($8BE5),A | |||
|
Print "The panel slides back
revealing an exit south.".
|
||||
| 9A25 | LD HL,$8208 | HL=Messaging_ThePanelSlidesBackRevealingAnExitSouth. | ||
| 9A28 | JP ActionTouch_Loop2 | Jump to ActionTouch_Loop2. | ||
| ActionTouch_Step3 | 9A2B | JP ActionTouch_Loop1 | Continue at ActionTouch_Loop1 to say it has no effect. | |
|
View the equivalent code in;
|
||||
| Prev: 997F | Up: Map | Next: 9A2E |