![]() |
Routines |
Prev: 61180 | Up: Map | Next: 61268 |
This event handles the poisonous spider.
|
||||
Print "
A poisonous spider drops on you.".
|
||||
Event_Spider | 61234 | LD HL,55512 | HL=Messaging_PoisonousSpiderDropsOnYou. | |
61237 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
61240 | LD A,10 | Call GenerateRandomNumber with a maximum value of 10. | ||
61242 | CALL GenerateRandomNumber | |||
61245 | JR NZ,Event_Spider_Safe | Jump to Event_Spider_Safe if the random generator returns a non-zero response. | ||
Bad luck!
|
||||
61247 | LD HL,60887 | Switch GameOver onto the stack so the next return actions a "game over". | ||
61250 | EX (SP),HL | |||
Print "It stings you.".
|
||||
61251 | LD HL,55586 | HL=Messaging_PoisonousSpiderStingsYou. | ||
61254 | JR Event_Spider_PrintAndReturn | Jump to Event_Spider_PrintAndReturn. | ||
Handle that the poisonous spider didn't sting you.
|
||||
Event_Spider_Safe | 61256 | LD A,135 | A=135 (event ID: 7). | |
61258 | CALL Handler_DestroyItemEvent | Call Handler_DestroyItemEvent. | ||
Print "It lingers a moment,
then scuttles off.".
|
||||
61261 | LD HL,55546 | HL=Messaging_PoisonousSpiderScuttlesOff. | ||
Event_Spider_PrintAndReturn | 61264 | CALL PausePrintStringAndScroll | Call PausePrintStringAndScroll. | |
61267 | RET | Return. |
Prev: 61180 | Up: Map | Next: 61268 |