Prev: 98B9 Up: Map Next: 99DD
997F: Action: Type
Type the password named in the command.
ActionType 997F LD A,($6223) Fetch the current room.
9982 CP $36 Jump to ActionType_Step1 when the player is in room 36: " The Reactor Room".
9984 JR Z,ActionType_Step1
Print "Please rephrase that.".
9986 LD HL,$6445 HL=Messaging_PleaseRephraseThat.
9989 JR ActionType_Loop2 Jump to ActionType_Loop2.
Print "The message:- "INCORRECT PASSWORD" appears.".
ActionType_Loop1 998B LD HL,$80C3 HL=Messaging_TheMessageINCORRECTPASSWORDAppears.
ActionType_Loop2 998E CALL PrintStringAndANewline Call PrintStringAndANewline.
9991 RET Return.
ActionType_Step1 9992 LD A,$3B Jump to ActionType_Step2 when A key in the control panel. The key is set to 'ON'. (3B) is here or being carried.
9994 CALL IsObjectInCurrentRoom
9997 JR Z,ActionType_Step2
Print "The computer is not on line.".
9999 LD HL,$81BC HL=Messaging_TheComputerIsNotOnLine.
999C JP ActionType_Loop2 Jump to ActionType_Loop2.
ActionType_Step2 999F LD A,$2B Jump to ActionType_Step3 when A light is flashing and you can hear a warning siren. (2B) is not here or being carried.
99A1 CALL IsObjectInCurrentRoom
99A4 JR NZ,ActionType_Step3
Print "The computer will not allow any further input.".
99A6 LD HL,$81D9 HL=Messaging_TheComputerWillNotAllowAnyFurtherInput.
99A9 JP ActionType_Loop2 Jump to ActionType_Loop2.
ActionType_Step3 99AC LD HL,$8B32 Jump to ActionType_Step4 unless the command matches the phrase at 8B32.
99AF CALL Parser_AdvanceToSeparator
99B2 JR NZ,ActionType_Step4
99B4 LD BC,$3E00 Move A message on the computer screen reads:- "TYPE PASSWORD". (3E) to nowhere (00).
99B7 CALL UpdateObjectLocation
99BA LD BC,$3F35 Move A wall of rock now blocks the northern exit. (3F) to room 35: " The Alien Commander's Chamber".
99BD CALL UpdateObjectLocation
99C0 LD BC,$2B36 Move A light is flashing and you can hear a warning siren. (2B) to room 36: " The Reactor Room".
99C3 CALL UpdateObjectLocation
This action changes the map:
99C6 XOR A Seal the north exit of The Alien Commander's Chamber.
99C7 LD ($8C98),A
99CA LD HL,$6219 Check the turn-based event flags.
99CD SET 3,(HL) Arm the explosion countdown.
99CF LD A,$15 The complex explodes in 15 turns.
99D1 LD ($621D),A
Print "The password is accepted. A red light starts flashing. You can hear a warning siren. You must leave the cave system, immediately! The reactor will soon explode. There is a muffled thud from the next room.".
99D4 LD HL,$80EF HL=Messaging_ThePasswordIsAcceptedARedLightStartsFla.
99D7 JP ActionType_Loop2 Jump to ActionType_Loop2.
ActionType_Step4 99DA JP ActionType_Loop1 Continue at ActionType_Loop1 to say the password is wrong.
Prev: 98B9 Up: Map Next: 99DD