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