This page is under construction.

Help on Locks

Assume the following:
Normal Locks on Exits
You pass a normal lock if you either are the named object or if you carry the named object. may be the name or #number of a thing, a playername prefixed by an asterisk (*), 'me', or 'here'.

@lock door=#123
Luke can enter, but Artoo can only enter if he carries Luke.
@lock door=!#333
Only Artoo is prevented from entering
@lock door=#456
Whoever carries the lightsabre may enter. Luke can enter if he carries his sabre, or he can throw the sabre through the entrance.
IS Locks on Exits
You pass an is lock only if you are the named object.
@lock door==#456
Only the Lightsabre may enter, by itself. Luke can throw the sabre through the exit but can not pass through it himself.
CARRY Locks on Exits
You pass a carry lock if you are carrying the named object.
@lock door=+$456
Anyone or anything carrying the Lightsabre may pass through the exit. However, Luke can not throw the Lightsabre through the exit, since the Lightsabre can not carry itself.
OWNERSHIP Locks on Exits
You pass an ownership lock if you have the same owner as the named object.
@lock door=$#456
The Lightsabre, its owner (presumably Luke) and everything else the Lightsabre's owner owns may pass through the exit.
ATTRIBUTE Locks on Exits
You may lock on whether a specific attribute on the player attempting to pass the lock matches a pattern. ...
@lock door=JEDI:L*
This allows Luke through the door, since Luke has his JEDI attribute set to Light. Since this also checks inventories, Artoo could pass through the door if Luke were riding inside Artoo. (Ha!)
@lock door==JEDI:L*
This checks for the JEDI attribute only on Luke. So Luke can pass through the door, but Artoo can't, even if he's carrying Luke. The Lightsabre can't be thrown through, either.
@lock door=+JEDI:L*
This checks for the JEDI attribute only in your inventory. So, neither Luke nor his Lightsabre can pass through the door, but Artoo can if he carries Luke.

From: "help @lock keys" in TinyMush 2.2.2

  Key Type    Form in @Lock Command
  ----------  ------------------------------
  Normal      <object>
  Is          =<object>
  Carry       +<object>
  Ownership   $<object>
  Indirect    @<object>
  Attribute   <attribute>:<wildcard-pattern>
              +<attribute>:<wildcard-pattern>
              =<attribute>:<wildcard-pattern>
  Evaluation  <attribute>/<value>
  Compound    <key> & <key>
              <key> | <key>
              !<key>
              ( <key> )