LONG(L)

NAME
	long - print out a long description of an item

SYNOPSIS
	void long(string str);

LOCATION
	Must be in any object a player can examine.

DESCRIPTION
	Whenever a player examines or looks at an object, then long() is
	called in that object.  

NOTES
	Note that while short(L) returns a string, long() returns nothing.
	Instead the task of write()-ing the description must be handled
	in the function.  The function query_long(), used in many mudlibs
	to return a description in a string, is NOT supported here.

	Before long(str) is called, id(str) has already been checked.  Only
	items that are recognized in id(L) can be examined.

	Most standard mudlib objects have a set_long() lfun which can be
	used to set a description.  The files room.c and thing.c also
	supply extra 'item' longs.

EXAMPLES
	void long(string str) {
 	   switch( str ) {
 	      case "window":
 	         write("The window is "+( open ? "open" : "closed")+".\n");
 	         return;
	      case "desk":
	      case "desktop":
	      case "old desk":
	         write("On the desktop there are some papers.\n");
	         return;
	      default:
	         ::long(str);
	   }
	}

SEE ALSO
	short(L), id(L), extra_look(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 70 since January 2020.
This file was last modified: June 2000.