Routines
Prev:
EB31
Up:
Map
Next:
EB54
EB49: Is Player Carrying Item
Used by the routines at
Throw_MirrorToAnton
,
Throw_CoinToAnton
,
Throw_HoneyToBear
,
Throw_MeatToFalcon
,
Throw_HoneyToLizard
,
Throw_MeatToBear
,
Give_Frog
,
Throw_MoneyToGuard
,
Close_Bible
,
Use_Bottle
,
Wave_Flute
,
Wave_Mandolin
,
Play_BarrowightWithBible
,
Play_SerpentWithSongbird
,
Play_HydraWithSword
,
Play_HydraWithSpear
,
Play_VampireWithCross
,
Play_KnightWithAcid
,
Play_DragonWithSword
,
Play_WitchWithWater
,
Drink_WhitePotion
,
Drink_BlackPotion
,
Play_BatWithFalcon
,
Read_Wand
,
Close_Map
,
Close_Scroll
,
Wave_Lyre
and
Play_PirateWithDagger
.
Return if the item is held; otherwise tell the player they are not carrying it.
Input
A
Item ID
Output
F
Z flag set if the item is in the players inventory
IsPlayerCarryingItem
EB49
CALL
IsObjectInInventory
Call
IsObjectInInventory
.
EB4C
RET Z
Return if the item is in the players inventory.
EB4D
POP HL
Restore
HL
from the stack.
Print "You're not carrying ".
EB4E
LD HL,$B191
HL
=
Messaging_YoureNotCarrying
.
EB51
JP
PrintStringAndItThemHandler
Jump to
PrintStringAndItThemHandler
.
View the equivalent code in;
Warlord
Prev:
EB31
Up:
Map
Next:
EB54