![]()  | 
Routines | 
| Prev: 63008 | Up: Map | Next: 63043 | 
| 
 
The player wants to use the sword, check which version of it is in the current room/ players inventory.
 
 | 
||||
| IsPlayerCarryingSword | 63019 | LD HL,58258 | Call CheckItemGroupPresent with Data_ItemGroup_Sword. | |
| 63022 | CALL CheckItemGroupPresent | |||
| 
 
Check if the player is actually holding whichever version of the sword was passed back.
 
 | 
||||
| 63025 | CALL CheckObjectInInventory | Call CheckObjectInInventory. | ||
| 63028 | RET Z | Return if the player is holding any version of the sword. | ||
| 
 
The player isn't carrying any version of the sword in their inventory.
 
 | 
||||
| 63029 | POP HL | Discard the return address on the stack. | ||
| 63030 | CALL CheckUserInput_Sword | Call CheckUserInput_Sword. | ||
| 63033 | LD A,E | Copy the originally requested item ID into A. | ||
| 63034 | CALL Z,IsPlayerCarryingItem | Call IsPlayerCarryingItem if the player mentioned "sword" at all anywhere in their input. | ||
| 
 
See Correct Typo.
 
Print "You don't have a weopon.".
 
 | 
||||
| 63037 | LD HL,56549 | HL=Messaging_DontHaveAWeopon. | ||
| 63040 | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. | ||
| Prev: 63008 | Up: Map | Next: 63043 |