Global error obj
CONFIG PARAMETER: global_error_obj <dbref>
DEFAULT: -1
Specifies the object that it looks for, to evaluate an attribute whenever a ‘Huh? (Type ‘help’ for help)’ would have shown up. The attribute is the VA attribute (settable by @va or &va), and will evaluate like you would in a @pemit, think, or other command. The enactor is %#, though it is evaluated by the object itself. This CAN be a security risk if not done properly, but is done that way on purpose. The string they typed will be passed as %0. It will be unevaluated and ‘as-is’.
Why the VA attribute? Why not? I felt it was being all alone and left out of the fun ;)
Original code and helpfile from RhostMUSH. Used with permission.
Example:
> @admin global_error_obj=10
Set.
> @va #10=[pemit(%#,You typed '%0')]
Set.
> @pemit me=Test
Test
> @pmit me=Test
You typed '@pmit me=Test'
Related Topics: