[Tinymux] Locking
Roy Anger
royanger at gmail.com
Thu Jun 30 19:35:32 EDT 2005
If your question is what I think it is, here's a simple example:
@lock <exit>=STAFF/1
&staff <exit>=[orflags(%#,WZw)]
So, when the person tries to use the exit it will evaluate the code in
the STAFF attribute. In this case the code looks to see if the person
has any one of the Wizard, Royalty or Staff flags. If so the code
returns a '1' which matches the /1. If the code returns something else
(a 0) then the person doesn't have the flags and doesn't pass the exit.
@lock <exit>=APPROVED/1
&approved <exit>=[or(hasattr(%#,approved),orflags(%#,WZw))]
This will see if the person has the approved attribute or if they have
any of the staff flags. If so they pass the lock. If not they don't.
R
On Thu, 2005-06-30 at 15:18 -0700, Alshandra wrote:
> I have been checking out the help fiels on locking and can't seem to
> find the syntax for locking an exit to an attribute...
>
> Can anyone tell me? *is sorry to be such a pain..*
> _______________________________________________
> Tinymux mailing list
> Tinymux at tinymux.org
> http://www.tinymux.org/mailman/listinfo/tinymux
More information about the Tinymux
mailing list