Prev: EB98 Up: Map Next: EBCC
EBAF: Events: Elf
An elf attacks. Sometimes the blow is fatal.
Events_Elf EBAF LD HL,$D753 Print " An elf attacks you.".
EBB2 CALL PrintStringAndANewline
EBB5 LD A,$0F Jump to Events_Elf_Next unless a roll of 0F comes up zero.
EBB7 CALL GenerateRandomNumber
EBBA JR NZ,Events_Elf_Next
EBBC LD HL,$EB23 Make the blow fatal and print "You were caught by surprise and didn't move quickly enough.".
EBBF EX (SP),HL
EBC0 LD HL,$D795
EBC3 JR Events_Elf_Print
Events_Elf_Next EBC5 LD HL,$D768 The blow only glances, with "But you are too fast and you evade the blow.".
Events_Elf_Print EBC8 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll to pause, then print that message and start a new line.
EBCB RET Return.
Prev: EB98 Up: Map Next: EBCC