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:
add_hook add_weight can_put_and_get clean_up drop
extra_look get heart_beat id init
init_arg is_armour is_money is_weapon long
query_auto_load query_hook query_long query_name query_prevent_move_from_statue
remove_hook reset set_long set_name set_short
short

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 83 since December 2019.
This file was last modified: June 2000.