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

Documentation Area

Document Path: /doc/object/init_arg


Lfun:	init_arg - initializise auto-loading objects

Synopsis:
	init_arg(string arg)

Description:
	This function is called at login of a user in every auto-loading
	object the user had in his inventory when he logged off. It is used
	for setting values in that object stored by query_auto_load.

	Not all MUDs allow you to write auto-load objects. In that case your
	object will not be recreated even though you defined a query_auto_load()
	and an init_arg() function.

Return value: none

Examples:
	See the query_auto_load example:

	string info;
	init_arg(str) {
		info=str;
	}

	If you want to restore several values, you have to extract them using
	sscanf.

See also:


This page was generated in LPC

Imprint / Impressum