From the NannyMUD documentation
2001-01-06
NAME
long - print out a long description of an itemLOCATION
Must be in any object a player can examine.SYNTAX
varargs void long(string str, object target);DESCRIPTION
Whenever a player examines or looks at an object, then long() is called in that object.NOTE
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. Basically, long() writes the text provided by query_long() to the object 'target' (default is this_player()). Before long(str) is called, id(str) has already been checked. Only items that are recognized in id(L) can be examined.EXAMPLE
void long(string str, target) { target = target || this_player(); // Fast way to set a default. switch( str ) { case "window": tell_object(target, "The window is "+( open ? "open" : "closed")+".\n"); return; case "desk": case "desktop": case "old desk": tell_object(target, "On the desktop there are some papers.\n"); return; default: ::long(str, target); } } // longSEE ALSO
short in lfun/basic/short short in std/misc/simple_armour short in std/misc/simple_weapon short in std/room/basic_roomSEE ALSO
id in lfun/basic/id id in std/misc/simple_armourSEE ALSO
extra_look in lfun/basic/extra_look extra_look in std/misc/simple_armour extra_look in std/misc/simple_weapon