Error()

From TinyMUX
Revision as of 09:48, 27 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions {{Function|error(<string>)}} This function is useful in softcoded commands, especially @addcommand'ed ones. If the global_error_obj config parameter is not set, th...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


error(<string>)

This function is useful in softcoded commands, especially @addcommand'ed ones. If the global_error_obj config parameter is not set, this will return the default error message. If it is, it passes <string> as if the player had typed it and gotten a bad command.

Example

> say error()

You say, "Huh? (Type 'help' for help.)"


> say error(@pmit)

You typed '@pmit'.