Prev: 9010 Up: Map Next: 9029
9014: Take Item
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;
Prev: 9010 Up: Map Next: 9029