Routines
Prev:
36880
Up:
Map
Next:
36905
36884: Take Item
Used by the routines at
Validate_Take_Knife
,
Validate_Take_LaserPistol
,
Validate_Take_Coin
,
Validate_Take_CrystalRod
,
Validate_Take_Detonator
,
Validate_Take_MetalBar
,
Validate_Take_GlowingSphere
,
Validate_Take_PoisonFungus
,
Validate_Take_RoundStones
,
Validate_Take_Key
,
Validate_Take_SpaceAxe
,
Validate_Take_Explosives
and
Validate_Take_PairOfGloves
.
Places the item in the player's inventory and acknowledges success.
TakeItem
36884
LD C,1
Call
UpdateObjectLocation
to mark the object as carried.
36886
CALL
UpdateObjectLocation
36889
LD HL,25132
Increment *
Count_InventoryItems
by one.
36892
INC (HL)
Print "O.K.".
36893
LD HL,25702
HL
=
Messaging_OK
.
36896
JR
TakeItem_PrintAndReturn
Jump to
TakeItem_PrintAndReturn
.
This entry point is used by the routines at
Validate_Take_GlowingSphere
,
Validate_Take_Key
and
Validate_Take_Ship
.
Print "You can't.".
Take_YouCant
36898
LD HL,25691
HL
=
Messaging_YouCanT
.
This entry point is used by the routines at
ActionTake
,
Take_IsPlayerHoldingItem
,
Validate_Take_PoisonFungus
and
Validate_Take_Ship
.
TakeItem_PrintAndReturn
36901
CALL
PrintStringAndANewline
Call
PrintStringAndANewline
.
36904
RET
Return.
View the equivalent code in;
Forest At Worlds End
The Jewels Of Babylon
Prev:
36880
Up:
Map
Next:
36905