Error()

From TinyMUX
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'.