![]() |
Routines |
| Prev: 62219 | Up: Map | Next: 62742 |
|
Fight the Korl warrior.
|
||||
| Handler_KillTheWarrior | 62603 | LD HL,59258 | Call Parser_SkipToken to skip to the object named by this phrase. | |
| 62606 | CALL Parser_SkipToken | |||
| 62609 | LD B,A | Call TransformItem to turn the warrior into the dead blacksmith. | ||
| 62610 | LD C,39 | |||
| 62612 | CALL TransformItem | |||
|
Reply with "You have killed him.".
|
||||
| 62615 | LD HL,57478 | Print "You have killed him." and return to the game loop. | ||
| 62618 | JP PauseAndPrintResponse | |||
|
This entry point is used by the routine at Handler_FightOpponent.
|
||||
| Handler_KillTheWarrior_RingWornBow | 62621 | LD HL,59572 | Jump to Handler_KillTheWarrior_Next unless the player named the ring being worn. | |
| 62624 | CALL Parser_AdvanceToSeparator | |||
| 62627 | JR NZ,Handler_KillTheWarrior_Next | |||
| 62629 | LD A,39 | Jump to Response_HesAlreadyDead when object 39 (the dead blacksmith) is here. | ||
| 62631 | CALL IsObjectInCurrentRoom | |||
| 62634 | JP Z,Response_HesAlreadyDead | |||
| 62637 | CALL Handler_CheckWeapon | Call Handler_CheckWeapon to make sure the player is holding the bow and some arrows. | ||
| 62640 | XOR A | Call Handler_AnnounceArrow to announce the arrow. | ||
| 62641 | CALL Handler_AnnounceArrow | |||
| 62644 | JP Handler_KillTheWarrior | Jump back to Handler_KillTheWarrior to finish off the warrior. | ||
| Handler_KillTheWarrior_Next | 62647 | LD HL,59576 | Jump to Handler_KillTheWarrior_LogBridgeBow unless the player named the log bridge. | |
| 62650 | CALL Parser_AdvanceToSeparator | |||
| 62653 | JR NZ,Handler_KillTheWarrior_LogBridgeBow | |||
| 62655 | LD A,42 | Jump to Response_HesAlreadyDead if object 42 (Zarn) is not here. | ||
| 62657 | CALL IsObjectInCurrentRoom | |||
| 62660 | JP NZ,Response_HesAlreadyDead | |||
| 62663 | CALL Handler_RequireSword | Call Handler_RequireSword to make sure the player is holding the sword. | ||
| 62666 | LD A,5 | Call Handler_ResolveAttack to resolve the attack on the named opponent. | ||
| 62668 | CALL Handler_ResolveAttack | |||
| 62671 | LD BC,10795 | Replace object 42 (Zarn) with object 43 (Zarn's body). | ||
| 62674 | CALL TransformItem | |||
| 62677 | LD HL,47679 | Arm Princess Mara's arrival, then pause and print "Your blow strikes true." and start a new line. | ||
| 62680 | SET 0,(HL) | |||
| 62682 | LD HL,57156 | |||
| 62685 | CALL PausePrintStringAndScroll | |||
|
Reply with "The Wizard falls to the floor.
He is dead.
The Princess says:-
"My brave warrior,let us leave.
Lead and I will follow."".
|
||||
| 62688 | LD HL,57499 | Print "The Wizard falls to the floor. He is dead. The Princess says:- "My brave warrior,let us leave. Lead and I will follow."" and return to the game loop. | ||
| 62691 | JP PrintResponse | |||
| Handler_KillTheWarrior_LogBridgeBow | 62694 | LD HL,59580 | Jump to Handler_KillTheWarrior_PrincessSword unless the player named the log bridge. | |
| 62697 | CALL Parser_AdvanceToSeparator | |||
| 62700 | JR NZ,Handler_KillTheWarrior_PrincessSword | |||
| 62702 | LD A,42 | Jump to Response_HesAlreadyDead if object 42 (Zarn) is not here. | ||
| 62704 | CALL IsObjectInCurrentRoom | |||
| 62707 | JP NZ,Response_HesAlreadyDead | |||
| 62710 | CALL Handler_CheckWeapon | Call Handler_CheckWeapon to make sure the player is holding the bow and some arrows. | ||
|
Reply with "Arrows have no effect.".
|
||||
| 62713 | LD HL,57455 | Print "Arrows have no effect." and return to the game loop. | ||
| 62716 | JP PrintResponse | |||
| Handler_KillTheWarrior_PrincessSword | 62719 | LD HL,59584 | Jump to Handler_KillTheWitch_PrincessBow unless the player named the princess with the sword. | |
| 62722 | CALL Parser_AdvanceToSeparator | |||
| 62725 | JR NZ,Handler_KillTheWitch_PrincessBow | |||
| 62727 | LD A,44 | Jump to Response_ShesAlreadyDead if object 44 (Princess Mara) is not here. | ||
| 62729 | CALL IsObjectInCurrentRoom | |||
| 62732 | JP NZ,Response_ShesAlreadyDead | |||
| 62735 | CALL Handler_RequireSword | Call Handler_RequireSword to make sure the player is holding the sword. | ||
| 62738 | XOR A | Call Handler_ResolveAttack to resolve the attack on the named opponent. | ||
| 62739 | CALL Handler_ResolveAttack | |||
| Prev: 62219 | Up: Map | Next: 62742 |