Prev: EB98 Up: Map Next: EBCC
EBAF: Events: Elf
An elf attacks. Sometimes the blow is fatal.
Print " An elf attacks you.".
Events_Elf EBAF LD HL,$D753 HL=Messaging_AnElfAttacksYou.
EBB2 CALL PrintStringAndNewline Call PrintStringAndNewline.
EBB5 LD A,$0F A=0F.
EBB7 CALL GenerateRandomNumber Call GenerateRandomNumber.
EBBA JR NZ,Events_Elf_Next Jump to Events_Elf_Next if the blow is not fatal.
EBBC LD HL,$EB23 Switch GameOver onto the stack so the next return actions a "game over".
EBBF EX (SP),HL
Print "You were caught by surprise and didn't move quickly enough.".
EBC0 LD HL,$D795 HL=Messaging_YouWereCaughtBySurprise.
EBC3 JR Events_Elf_Print Jump to Events_Elf_Print.
Print "But you are too fast and you evade the blow.".
Events_Elf_Next EBC5 LD HL,$D768 HL=Messaging_ButYouAreTooFastAnd.
Events_Elf_Print EBC8 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll.
EBCB RET Return.
Prev: EB98 Up: Map Next: EBCC