![]() |
Routines |
| Prev: 62603 | Up: Map | Next: 62812 |
|
Fight the witch.
|
||||
| Handler_KillTheWitch | 62742 | LD BC,11309 | Replace object 44 (Princess Mara) with object 45 (Mara's body). | |
| 62745 | CALL TransformItem | |||
| 62748 | LD HL,47679 | Stop Princess Mara appearing, then pause and print "You have killed her." and return to the game loop. | ||
| 62751 | RES 0,(HL) | |||
| 62753 | LD HL,57332 | |||
| 62756 | JP PauseAndPrintResponse | |||
|
This entry point is used by the routine at Handler_KillTheWarrior.
|
||||
| Handler_KillTheWitch_PrincessBow | 62759 | LD HL,59588 | Jump to Handler_KillTheWitch_Next unless the player named the princess with the bow. | |
| 62762 | CALL Parser_AdvanceToSeparator | |||
| 62765 | JR NZ,Handler_KillTheWitch_Next | |||
| 62767 | LD A,44 | Jump to Response_ShesAlreadyDead if object 44 (Princess Mara) is not here. | ||
| 62769 | CALL IsObjectInCurrentRoom | |||
| 62772 | JP NZ,Response_ShesAlreadyDead | |||
| 62775 | CALL Handler_CheckWeapon | Call Handler_CheckWeapon to make sure the player is holding the bow and some arrows. | ||
| 62778 | XOR A | Call Handler_AnnounceArrow to announce the arrow. | ||
| 62779 | CALL Handler_AnnounceArrow | |||
| 62782 | JP Handler_KillTheWitch | Jump back to Handler_KillTheWitch to finish off the witch. | ||
| Handler_KillTheWitch_Next | 62785 | LD HL,59592 | Jump to Handler_KillTheBlacksmith_WarriorBow unless the player named the warrior with the sword. | |
| 62788 | CALL Parser_AdvanceToSeparator | |||
| 62791 | JR NZ,Handler_KillTheBlacksmith_WarriorBow | |||
| 62793 | LD A,140 | Jump to Response_HesAlreadyDead if object 140 is not here. | ||
| 62795 | CALL IsObjectInCurrentRoom | |||
| 62798 | JP NZ,Response_HesAlreadyDead | |||
| 62801 | CALL Handler_RequireSword | Call Handler_RequireSword to make sure the player is holding the sword. | ||
| 62804 | LD A,5 | Call Handler_ResolveAttack to resolve the attack on the named opponent. | ||
| 62806 | CALL Handler_ResolveAttack | |||
| 62809 | LD HL,57156 | The sword lands, with "Your blow strikes true.". | ||
| Prev: 62603 | Up: Map | Next: 62812 |