@verb
- @verb** is a command that provides a way to do user-defined verbs with associated @attr/@oattr/@aattr groups.
Usage
Syntax: @verb victim=actor, what, def, owhat, odef, awhat, args
Invoking @verb does the following:
- actor sees the contents of the what attribute on victim, or the def string if you can’t read the victim’s what attribute.
- Everyone in the same room as actor sees the contents of the owhat attribute on victim, with the actor’s name prepended, or odef, also with the actor’s name prepended, if you can’t read the victim’s owhat attribute.
- If you control victim, then he executes the contents of his awhat attribute.
You must control the actor, but need not control the victim. Note that if you don’t have the ability to read the appropriate attributes (whether because you control the victim, he is VISUAL, or the attributes are set VISUAL), the default messages will be used.
Arguments
victim : The object that is searched for attributes, and which runs the
Examples
> &xtest test1=You just xtested test1.
> &oxtest test1=just xtested test1.
> &axtest test1=“I was xtested. Yikes. Arg1=%0, Arg2=%1, Arg3=%2.
> @verb test1=me,xtest,XTEST DFLT,oxtest,OXTEST DFLT,axtest,
You just xtested test1.
test1 says “I was xtested. Yikes. Arg1=a, Arg2=b c, Arg3=de.”
> &xtest test1
> @verb test1=me,xtest,XTEST DFLT,oxtest,OXTEST DFLT,axtest,
XTEST DFLT
test1 says “I was xtested. Yikes. Arg1=a, Arg2=b c, Arg3=de.”
> @fo test1=}
test1 just xtested test1.
test1 says “I was xtested. Yikes. Arg1=a, Arg2=b, Arg3=de.”
See also: locate().
Relevant help files: help @verb, help @verb2, help @verb3