![]() |
Routines |
| Prev: ECFA | Up: Map | Next: ED1B |
|
Take the sword unless a strange force stops the player.
|
||||
| Take_Sword | ED00 | LD A,$2F | Call Take_IsPlayerHoldingItem with item 2F: "A sword.". | |
| ED02 | CALL Take_IsPlayerHoldingItem | |||
| ED05 | LD A,($AECD) | A=*CurrentRoom. | ||
| ED08 | CP $1A | Jump to TakeItem if *CurrentRoom is not room 1A: " The Sword Room". | ||
| ED0A | JP NZ,TakeItem | |||
| ED0D | LD HL,$AE78 | Jump to TakeItem if bit 0 of *Flag_TurnScratch is set. | ||
| ED10 | BIT 0,(HL) | |||
| ED12 | JP NZ,TakeItem | |||
|
Print "A strange force stops you.".
|
||||
| ED15 | LD HL,$D28C | HL=Messaging_AStrangeForceStopsYou. | ||
| ED18 | JP PrintResponse | Jump to PrintResponse. | ||
| Prev: ECFA | Up: Map | Next: ED1B |