All help topics · Link to this topic
Showing help on '$lock_utils'
lock utilities ($lock_utils #53)These routines are used when locking objects, and when testing an object's lock before allowing use (such as in an exit).
:parse_keyexp (string keyexpression, object player)
=> returns an object or list for the new key as defined by the
keyexpression or a string describing the error if it failed.
:eval_key (LIST|OBJ key, testobject)
=> returns true if the given testobject satisfies the key.
:unparse_key (LIST|OBJ key)
=> returns a string describing the key in english/moo-code terms.
For more information on keys and locking, read `help locking', `help keys', and `help @lock'.
:parse_keyexp - parse_keyexp(STRING keyexpression, OBJ player) => returns a list containing the coded key, or a string containing an error message if the attempt failed.
:eval_key - eval_key(LIST|OBJ coded key, OBJ testobject) => returns true if testobject will solve the provided key.
:match_object - used by $lock_utils to unparse a key expression so one can use `here' and `me' as well as doing the regular object matching.
:unparse_key(LIST|OBJ coded key) => returns a string describing the key in english/moo-code terms.
Also from $generic_utils: 1 documented verb. help $generic_utils