From the NannyMUD documentation

LAST CHANGE

2001-01-06

FUNCTION


NAME

        query_name - return the name of an object

LOCATION

	Most objects that players can interact with should have this.

SYNTAX

	string query_name()

DESCRIPTION

	This function shows the name of the object.

RETURN VALUES

	The name of the object.

NOTE

	The string that query_name() returns should be one of the object's
	id's (that is, id() should return 1 when the name is passed to it).
	If you are making your own object and not inheriting a standard file,
	you must assure that this is so yourself. 

	It is not a rule that objects must have a query_name() function,
	but it is a good idea.  The name should be short, should not be
	capitalized unless it is a "proper" name, and should not contain
	articles (it should be "sword" instead of "a sword" or "the sword").

	When referencing other objects, do not assume query_name() will
	return a string.  Alas, not all wizards have used it.

	Standard mudlib files such as weapon.c, etc., will return the name
	that was set with the set_name() lfun.  Monsters and players will
	return the capitalized form of their names.

SEE ALSO

        set_name in lfun/basic/set_name
        set_name in obj/quest_obj
        set_name in std/basic/stationary

SEE ALSO

        short in lfun/basic/short
        short in std/misc/simple_armour
        short in std/misc/simple_weapon
        short in std/room/basic_room

SEE ALSO

        id in lfun/basic/id
        id in std/misc/simple_armour

SEE ALSO

        query_real_name in lfun/living/living_functions
        query_real_name in lfun/player/query_real_name
        query_real_name in std/monster/basic_monster