.program command is a common way for programmers to associate a
particular MOO-code program with a particular verb. It has the following
.program object:verb ...several lines of MOO code... .
That is, after typing the
.program command, then all lines of input from
the player are considered to be a part of the MOO program being defined. This
ends as soon as the player types a line containing only a dot (`.'). When
that line is received, the accumulated MOO program is checked for proper MOO
syntax and, if correct, associated with the named verb.
If, at the time the line containing only a dot is processed, (a) the player is
not a programmer, (b) the player does not have write permission on the named
verb, or (c) the property
and has a true value and the player is not a wizard, then an error message is
printed and the named verb's program is not changed.
.program command, object may have one of three forms:
#0), in the form
$name. In this case, the current value of
#0.namemust be a valid object.