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:
You are guest number 70 since January 2020.
This file was last modified: June 2000.