A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/object/show_data


Lfun:	show_data - show the data of an object

Synopsis:
	int show_data(mixed flag)

Description:
	You should always define this function to display all important
	variables of your object. The show_data function is called by the
	stat wizard command.

	The information returned is put out via write. That can be things
	like short/long-descriptions, classes and various variables, what
	ever you think is useful.

	Inherited generic objects (monster/weapons/armour etc.) already
	have a show_data function. You don't need to write an extra one.
	If you still want to have an own show_data() call ::show_data(arg)
	there.

	If there is any arg "flag", show_data also displays the stored
	properties of the object.

Return value:
	The function show_data should always return 1 to be able to determine 
	whether there is such a function.

Examples:
	string colour;
	show_data(arg) {
		::show_data(arg);
		printf("Colour:\t%s\n", colour);
		return 1;
	}

Note:
	During the development of persistence the argument "flag" was added.
	Currently no 'stat' command supports this (see 'help w/stat' or any
	wizard tool).

See also:


This page was generated in LPC

Imprint / Impressum