Routines
Prev:
9010
Up:
Map
Next:
9029
9014: 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
9014
LD C,$01
Call
UpdateObjectLocation
to mark the object as carried.
9016
CALL
UpdateObjectLocation
9019
LD HL,$622C
Increment *
Count_InventoryItems
by one.
901C
INC (HL)
Print "O.K.".
901D
LD HL,$6466
HL
=
Messaging_OK
.
9020
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
9022
LD HL,$645B
HL
=
Messaging_YouCanT
.
This entry point is used by the routines at
ActionTake
,
Take_IsPlayerHoldingItem
,
Validate_Take_PoisonFungus
and
Validate_Take_Ship
.
TakeItem_PrintAndReturn
9025
CALL
PrintStringAndANewline
Call
PrintStringAndANewline
.
9028
RET
Return.
View the equivalent code in;
Forest At Worlds End
The Jewels Of Babylon
Prev:
9010
Up:
Map
Next:
9029