![]()  | 
Routines | 
| Prev: 61151 | Up: Map | Next: 61234 | 
| 
 
This event handles the water snake.
 
 | 
||||
| 
 
Print "
A long water snake
slithers toward you...".
 
 | 
||||
| Event_WaterSnake | 61180 | LD HL,55329 | HL=55329. | |
| 61183 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| 61186 | LD A,4 | Call GenerateRandomNumber with a maximum value of 4. | ||
| 61188 | CALL GenerateRandomNumber | |||
| 61191 | JR NZ,Event_WaterSnake_Safe_1 | Jump to Event_WaterSnake_Safe_1 if the random generator returns a non-zero response. | ||
| 
 
Bad luck #1!
 
Print "It suddenly strikes at you...".
 
 | 
||||
| 61193 | LD HL,55372 | HL=55372. | ||
| 61196 | CALL PausePrintStringAndScroll | Call PausePrintStringAndScroll. | ||
| 61199 | LD A,20 | Call GenerateRandomNumber with a maximum value of 20. | ||
| 61201 | CALL GenerateRandomNumber | |||
| 61204 | JR NZ,Event_WaterSnake_Safe_2 | Jump to Event_WaterSnake_Safe_2 if the random generator returns a non-zero response. | ||
| 
 
Bad luck #2!
 
 | 
||||
| 61206 | LD HL,60887 | Switch GameOver onto the stack so the next return actions a "game over". | ||
| 61209 | EX (SP),HL | |||
| 
 
Print "The venomous fangs sink
into you.".
 
 | 
||||
| 61210 | LD HL,55402 | HL=55402. | ||
| 61213 | JR WaterSnake_PrintAndReturn | Jump to WaterSnake_PrintAndReturn. | ||
| 
 
Handle that the water snake just doesn't mess with you.
 
Print "It regards you for a moment,
then slips away.".
 
 | 
||||
| Event_WaterSnake_Safe_1 | 61215 | LD HL,55466 | HL=55466. | |
| 61218 | JR WaterSnake_Safe_Continue | Jump to WaterSnake_Safe_Continue. | ||
| 
 
Handle that the water snake has terrible eyesight.
 
Print "But it misses and slips away.".
 
 | 
||||
| Event_WaterSnake_Safe_2 | 61220 | LD HL,55436 | HL=55436. | |
| WaterSnake_Safe_Continue | 61223 | PUSH HL | Stash HL on the stack. | |
| 61224 | LD A,134 | A=134 (event ID: 6). | ||
| 61226 | CALL Handler_DestroyItemEvent | Call Handler_DestroyItemEvent. | ||
| 61229 | POP HL | Restore HL from the stack. | ||
| WaterSnake_PrintAndReturn | 61230 | CALL PausePrintStringAndScroll | Call PausePrintStringAndScroll. | |
| 61233 | RET | Return. | ||
| Prev: 61151 | Up: Map | Next: 61234 |