![]() |
Routines |
Prev: 63403 | Up: Map | Next: 63569 |
|
||||
Action_??? | 63446 | CALL 50335 | Call 50335. | |
63449 | RET C | Return if the direct object is malformed. | ||
63450 | LD HL,59942 | Call MatchPhraseTokens with PhraseTokens_PlankAcrossPit. | ||
63453 | CALL MatchPhraseTokens | |||
63456 | JR NZ,Action_???_0 | Jump to Action_???_0 if the token isn't for the . | ||
63458 | LD A,4 | Call ValidateItemPresent with "A plank". | ||
63460 | CALL ValidateItemPresent | |||
63463 | JP NZ,Response_YouveDoneThatAlready | Jump to Response_YouveDoneThatAlready if "A plank" isn't in the current room. | ||
63466 | LD A,4 | A=4. | ||
63468 | CALL Action_DropThrow_1 | Call Action_DropThrow_1. | ||
63471 | LD A,4 | A=4 (event ID: 4). | ||
63473 | CALL Handler_DestroyItemEvent | Call Handler_DestroyItemEvent. | ||
63476 | LD BC,1382 | Call Handler_UpdateObjectLocation using item "A plank (spanning the pit)" to create it in The Wide Pit. | ||
63479 | CALL Handler_UpdateObjectLocation | |||
63482 | LD BC,1640 | Call Handler_UpdateObjectLocation using item "A plank (spanning the pit)" to create it in The Southern Side of the Pit. | ||
63485 | CALL Handler_UpdateObjectLocation | |||
63488 | LD A,104 | Write 104 to *60789. | ||
63490 | LD (60789),A | |||
63493 | LD A,102 | Write 102 to *60800. | ||
63495 | LD (60800),A | |||
63498 | CALL Response_OK_Duplicate | Call Response_OK_Duplicate. | ||
Print "The plank now spans the pit.".
|
||||
63501 | LD HL,57356 | HL=Messaging_PlankAcrossPit. | ||
63504 | JP PrintStringAndNewline_Alias | Jump to PrintStringAndNewline_Alias. | ||
Action_???_0 | 63507 | LD HL,60016 | Call MatchPhraseTokens with PhraseTokens_RodInHole. | |
63510 | CALL MatchPhraseTokens | |||
63513 | JR NZ,Action_???_2 | Jump to Action_???_2 if the token isn't for the . | ||
This entry point is used by the routine at Action_Insert.
|
||||
Action_???_1 | 63515 | LD A,8 | Call ValidateItemPresent with "A rod". | |
63517 | CALL ValidateItemPresent | |||
63520 | JP NZ,Response_YouveDoneThatAlready | Jump to Response_YouveDoneThatAlready if "A rod" isn't in the current room. | ||
63523 | LD A,8 | Call Action_DropThrow_1 with "A rod". | ||
63525 | CALL Action_DropThrow_1 | |||
63528 | LD A,8 | Call Handler_DestroyItemEvent with "A rod". | ||
63530 | CALL Handler_DestroyItemEvent | |||
63533 | LD BC,2314 | Call TransformItem to transform item 9 ("A small round hole to the side of the door") into item 10 ("A hole with a rod inserted to the side of the door"). | ||
63536 | CALL TransformItem | |||
63539 | LD BC,12849 | Call TransformItem to transform item 50 ("The door is closed") into item 49 ("The door is open"). | ||
63542 | CALL TransformItem | |||
63545 | LD A,51 | Call Handler_DestroyItemEvent with "A slab of rock". | ||
63547 | CALL Handler_DestroyItemEvent | |||
63550 | LD A,106 | Write 106 to *60304 to open up eastbound access to The Mighty Rock Door from The Narrow Path. | ||
63552 | LD (60304),A | |||
63555 | LD A,21 | Write 21 to *60813 to open up southbound access to The Narrow Path from The Mighty Rock Door. | ||
63557 | LD (60813),A | |||
Print "There is a faint click and
the rock door slowly rumbles
open.".
|
||||
63560 | LD HL,57385 | HL=Messaging_OpenRockDoor. | ||
63563 | JP PrintStringAndNewline_Alias | Jump to PrintStringAndNewline_Alias. | ||
Action_???_2 | 63566 | JP Response_YouCant_Duplicate | Jump to Response_YouCant_Duplicate. |
Prev: 63403 | Up: Map | Next: 63569 |