![]() |
Routines |
| Prev: 60312 | Up: Map | Next: 60364 |
|
An elf attacks. Sometimes the blow is fatal.
|
||||
|
Print "
An elf attacks you.".
|
||||
| Events_Elf | 60335 | LD HL,55123 | HL=Messaging_AnElfAttacksYou. | |
| 60338 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| 60341 | LD A,15 | A=15. | ||
| 60343 | CALL GenerateRandomNumber | Call GenerateRandomNumber. | ||
| 60346 | JR NZ,Events_Elf_Next | Jump to Events_Elf_Next if the blow is not fatal. | ||
| 60348 | LD HL,60195 | Switch GameOver onto the stack so the next return actions a "game over". | ||
| 60351 | EX (SP),HL | |||
|
Print "You were caught by surprise
and didn't move quickly enough.".
|
||||
| 60352 | LD HL,55189 | HL=Messaging_YouWereCaughtBySurprise. | ||
| 60355 | JR Events_Elf_Print | Jump to Events_Elf_Print. | ||
|
Print "But you are too fast and
you evade the blow.".
|
||||
| Events_Elf_Next | 60357 | LD HL,55144 | HL=Messaging_ButYouAreTooFastAnd. | |
| Events_Elf_Print | 60360 | CALL PausePrintStringAndScroll | Call PausePrintStringAndScroll. | |
| 60363 | RET | Return. | ||
| Prev: 60312 | Up: Map | Next: 60364 |