Prev: 63201 Up: Map Next: 63251
63235: Response: Game Over If Player Is Carrying Sword
Input
HL Pointer to a messaging string
Response_IfSwordThenGameOver 63235 LD (42866),HL Temporarily stash the messaging pointer in HL to *TemporaryStorage_Messaging.
Make sure the player is even carrying a sword.
63238 CALL IsPlayerCarryingSword Call IsPlayerCarryingSword.
The player is carrying a sword but that means their doom...
Bad luck!
63241 LD HL,59826 Switch GameOver onto the stack so the next return actions a "game over".
63244 EX (SP),HL
Print the messaging string.
63245 LD HL,(42866) Restore the messaging pointer from *TemporaryStorage_Messaging.
63248 JP PrintStringAndNewline_Duplicate Jump to PrintStringAndNewline_Duplicate.
Prev: 63201 Up: Map Next: 63251