INIT_ARG(L)

NAME
	init_arg - parse a string passed by an autoloading object

SYNOPSIS
	void init_arg(string str);

LOCATION
	In certain autoloading objects.

DESCRIPTION
	Autoloading objects save a filename and an optional string (see
	query_auto_load(L)).  In most cases that string will be "".  If it
	is anything other than "", then when the autoloader is cloned when 
	the player logs on, the optional string is passed to init_arg().

NOTES
	Use this to save certain certain flags, conditions, and settings.
	
	If you use some sort of separator for options saved, make sure that
	players cannot set these tokens themselves.  The "^!" token is
	reserved for the separating of autoloaders in the player object.  Use
	of it will cause your object not to autoload.


EXAMPLES
	A completely arbitrary and useless example:

	/* This takes a sentence and prints out words on separated lines
	   when the player logs on */
	void init_arg(string str) {
	   write(implode(explode(str, " ", "\n")));
	}

SEE ALSO
	query_auto_load(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 66 since January 2020.
This file was last modified: June 2000.