Prev: E9FA Up: Map Next: EA44
EA0B: Fatal Events: Roman
Event_Roman EA0B LD A,$03 Call Handler_DestroyItemEvent with N/A.
EA0D CALL Handler_DestroyItemEvent
EA10 LD A,$02 Call Handler_UpdateItemEventCurrentRoom with N/A.
EA12 CALL Handler_UpdateItemEventCurrentRoom
Print " The Roman suddenly appears and he attacks you...".
EA15 LD HL,$C9AF HL=Messaging_RomanSuddenlyAppears.
EA18 CALL PrintStringAndNewline Call PrintStringAndNewline.
EA1B LD B,$14 B=14.
EA1D LD A,$22 Call ItemLocator with item 22: "Some food".
EA1F CALL ItemLocator
EA22 AND A Jump to Event_Roman_0 if A is equal to A.
EA23 JR Z,Event_Roman_0
Print " You shouldn't fight on an empty stomach...".
EA25 LD HL,$CA1A HL=Messaging_ShouldntFightOnEmptyStomach.
EA28 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll.
EA2B LD B,$0A B=0A.
Event_Roman_0 EA2D LD A,B Call GenerateRandomNumber using the maximum value held in B.
EA2E CALL GenerateRandomNumber
EA31 JR Z,Event_Roman_1 Jump to Event_Roman_1 if the random number was zero.
Print " You are too fast for him and you easily avoid the blow.".
EA33 LD HL,$C9E1 HL=Messaging_YouAreTooFastForHim.
EA36 JR Event_Roman_2 Jump to Event_Roman_2.
Event_Roman_1 EA38 POP HL Restore HL from the stack.
Bad luck!
EA39 LD HL,$E9B2 Switch GameOver onto the stack so the next return actions a "game over".
EA3C EX (SP),HL
Print " You are taken by surprise. The blow strikes true.".
EA3D LD HL,$CA46 HL=Messaging_YouAreTakenBySurpriseBlowStrikesTrue.
Event_Roman_2 EA40 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll.
EA43 RET Return.
Prev: E9FA Up: Map Next: EA44