GET(L) NAME get - define whether an object can be taken or not SYNOPSIS int get(); LOCATION In any object that a player can take. RETURN VALUE A non-zero value means the object can be taken. A zero value, or the absense of the function means it cannot. DESCRIPTION When a player tries to take an object, the function 'get' in that object is called by the player object. A true value allows the item to be picked up. NOTES If an object is not meant to be taken, do not define this. It is obviously senseless in most cases to define it in rooms. Many standard objects (weapon.c, treasure.c, etc.) already include this function, so there is no need to add it. id() is already checked before get() is called. SEE ALSO drop(L), query_weight(L)
Help topics available:
You are guest number 83 since December 2019.
This file was last modified: June 2000.