![]() |
Routines |
| Prev: 62914 | Up: Map | Next: 63077 |
|
Open the named door, gate or chest.
|
||||
| Action_Open | 62961 | CALL Parser_ValidateDirectObject | Return if the words after the verb are not valid for this command. | |
| 62964 | RET C | |||
| 62965 | LD HL,59626 | Jump to Handler_OpenTheChest unless the player named the door. | ||
| 62968 | CALL Parser_AdvanceToSeparator | |||
| 62971 | JP NZ,Handler_OpenTheChest | |||
| 62974 | LD HL,59287 | Call Parser_SkipToken to skip to the object named by this phrase. | ||
| 62977 | CALL Parser_SkipToken | |||
| 62980 | BIT 0,A | Jump to Action_Open_Next when the named door is closed. | ||
| 62982 | JR Z,Action_Open_Next | |||
|
Reply with "It's already open.".
|
||||
| 62984 | LD HL,57714 | Print "It's already open." and return to the game loop. | ||
| 62987 | JP PrintResponse | |||
| Action_Open_Next | 62990 | LD A,(47771) | Jump to Action_Open_Farmhouse when the player is in room 2 (Inside the Farmhouse). | |
| 62993 | CP 2 | |||
| 62995 | JR Z,Action_Open_Farmhouse | |||
| 62997 | CP 3 | Jump to Action_Open_WoodmansHutCheck unless the player is in room 3 (At a large Farmhouse). | ||
| 62999 | JR NZ,Action_Open_WoodmansHutCheck | |||
| Action_Open_Farmhouse | 63001 | LD BC,13877 | Replace object 54 (a closed door) with object 53 (an open door). | |
| 63004 | CALL TransformItem | |||
| 63007 | LD BC,14391 | Replace object 56 with object 55. | ||
| 63010 | CALL TransformItem | |||
| 63013 | LD A,3 | Jump back to Response_OK to confirm. | ||
| 63015 | LD (59713),A | |||
| 63018 | JP Response_OK | |||
| Action_Open_WoodmansHutCheck | 63021 | CP 15 | Jump to Action_Open_WoodmansHut when the player is in room 15 (At the Woodman's Hut). | |
| 63023 | JR Z,Action_Open_WoodmansHut | |||
| 63025 | CP 16 | Jump to Action_Open_WitchsHovelCheck unless the player is in room 16 (Inside the Woodman's Hut). | ||
| 63027 | JR NZ,Action_Open_WitchsHovelCheck | |||
| Action_Open_WoodmansHut | 63029 | LD BC,14905 | Replace object 58 with object 57. | |
| 63032 | CALL TransformItem | |||
| 63035 | LD BC,15419 | Replace object 60 with object 59. | ||
| 63038 | CALL TransformItem | |||
| 63041 | LD A,15 | Jump back to Response_OK to confirm. | ||
| 63043 | LD (59798),A | |||
| 63046 | JP Response_OK | |||
| Action_Open_WitchsHovelCheck | 63049 | CP 60 | Jump to Action_Open_WitchsHovel when the player is in room 60 (At the Witch's Hovel). | |
| 63051 | JR Z,Action_Open_WitchsHovel | |||
| 63053 | CP 61 | Jump to Handler_OpenTheChest unless the player is in room 61 (Inside the Witch's Hovel). | ||
| 63055 | JR NZ,Handler_OpenTheChest | |||
| Action_Open_WitchsHovel | 63057 | LD BC,15933 | Replace object 62 with object 61. | |
| 63060 | CALL TransformItem | |||
| 63063 | LD BC,16447 | Replace object 64 with object 63. | ||
| 63066 | CALL TransformItem | |||
| 63069 | LD A,60 | Jump back to Response_OK to confirm. | ||
| 63071 | LD (60068),A | |||
| 63074 | JP Response_OK | |||
| Prev: 62914 | Up: Map | Next: 63077 |