![]() |
Routines |
| Prev: 61446 | Up: Map | Next: 61498 |
|
Used by the routine at Validate_Take_RingOff.
Was the player trying to take ... the rope?
|
||||
| Validate_Take_Rope | 61457 | LD HL,59427 | Call Parser_AdvanceToSeparator with 59427. | |
| 61460 | CALL Parser_AdvanceToSeparator | |||
| 61463 | JR NZ,Take_YouCant | Jump to Take_YouCant if the token isn't for the rope. | ||
| 61465 | LD A,(47771) | Jump to Take_YouCant if *CurrentRoom is room 72: " Inside the Volcano". | ||
| 61468 | CP 72 | |||
| 61470 | JR Z,Take_YouCant | |||
| 61472 | LD A,8 | Call Take_IsPlayerHoldingItem with item 8: "A rope". | ||
| 61474 | CALL Take_IsPlayerHoldingItem | |||
| 61477 | LD A,35 | Jump to Validate_Take_Rope_PickUp if ValidateItemPresent reports that "A projection of rock with a rope tied to it. The rope dangles down into the volc" isn't in the current room. | ||
| 61479 | CALL ValidateItemPresent | |||
| 61482 | JR NZ,Validate_Take_Rope_PickUp | |||
| 61484 | LD BC,8994 | Call TransformItem to transform "A projection of rock with a rope tied to it. The rope dangles down into the volc" into "A projection of rock hangs over the lip of the volcano". | ||
| 61487 | CALL TransformItem | |||
|
Pick up the rope.
|
||||
| Validate_Take_Rope_PickUp | 61490 | LD B,8 | B=8; jump to TakeItem. | |
| 61492 | JP TakeItem | |||
|
Nothing else is valid.
|
||||
| Take_YouCant | 61495 | JP Response_YouCant_GameLoop | Jump to Response_YouCant_GameLoop. | |
| Prev: 61446 | Up: Map | Next: 61498 |