Prev: 39097 Up: Map Next: 39389
39295: Action: Type
Type the password named in the command.
ActionType 39295 LD A,(25123) Fetch the current room.
39298 CP 54 Jump to ActionType_Step1 when the player is in The Reactor Room. (54).
39300 JR Z,ActionType_Step1
39302 LD HL,25669 Print "Please rephrase that." and start a new line.
39305 JR ActionType_Loop2
ActionType_Loop1 39307 LD HL,32963 Print "The message:- "INCORRECT PASSWORD" appears." and start a new line.
ActionType_Loop2 39310 CALL PrintStringAndANewline
39313 RET Return.
ActionType_Step1 39314 LD A,59 Jump to ActionType_Step2 when A key in the control panel. The key is set to 'ON'. (59) is here or being carried.
39316 CALL IsObjectInCurrentRoom
39319 JR Z,ActionType_Step2
39321 LD HL,33212 Print "The computer is not on line." and start a new line.
39324 JP ActionType_Loop2
ActionType_Step2 39327 LD A,43 Jump to ActionType_Step3 when A light is flashing and you can hear a warning siren. (43) is not here or being carried.
39329 CALL IsObjectInCurrentRoom
39332 JR NZ,ActionType_Step3
39334 LD HL,33241 Print "The computer will not allow any further input." and start a new line.
39337 JP ActionType_Loop2
ActionType_Step3 39340 LD HL,35634 Jump to ActionType_Step4 unless the command matches the phrase at 35634.
39343 CALL Parser_AdvanceToSeparator
39346 JR NZ,ActionType_Step4
39348 LD BC,15872 Move A message on the computer screen reads:- "TYPE PASSWORD". (62) to nowhere (0).
39351 CALL UpdateObjectLocation
39354 LD BC,16181 Move A wall of rock now blocks the northern exit. (63) to The Alien Commander's Chamber. (53).
39357 CALL UpdateObjectLocation
39360 LD BC,11062 Move A light is flashing and you can hear a warning siren. (43) to The Reactor Room. (54).
39363 CALL UpdateObjectLocation
39366 XOR A Seal the north exit of The Alien Commander's Chamber..
39367 LD (35992),A
39370 LD HL,25113 Check the turn-based event flags.
39373 SET 3,(HL) Arm the explosion countdown.
39375 LD A,21 The complex explodes in 21 turns.
39377 LD (25117),A
39380 LD HL,33007 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." and start a new line.
39383 JP ActionType_Loop2
ActionType_Step4 39386 JP ActionType_Loop1 Continue at ActionType_Loop1 to say the password is wrong.
Prev: 39097 Up: Map Next: 39389