![]() |
Routines |
| Prev: 60312 | Up: Map | Next: 60364 |
|
An elf attacks. Sometimes the blow is fatal.
|
||||
| Events_Elf | 60335 | LD HL,55123 | Print " An elf attacks you.". | |
| 60338 | CALL PrintStringAndANewline | |||
| 60341 | LD A,15 | Jump to Events_Elf_Next unless a roll of 15 comes up zero. | ||
| 60343 | CALL GenerateRandomNumber | |||
| 60346 | JR NZ,Events_Elf_Next | |||
| 60348 | LD HL,60195 | Make the blow fatal and print "You were caught by surprise and didn't move quickly enough.". | ||
| 60351 | EX (SP),HL | |||
| 60352 | LD HL,55189 | |||
| 60355 | JR Events_Elf_Print | |||
| Events_Elf_Next | 60357 | LD HL,55144 | The blow only glances, with "But you are too fast and you evade the blow.". | |
| Events_Elf_Print | 60360 | CALL PausePrintStringAndScroll | Call PausePrintStringAndScroll to pause, then print that message and start a new line. | |
| 60363 | RET | Return. | ||
| Prev: 60312 | Up: Map | Next: 60364 |