Subject: Help?

From: Tim Sailer <[email-masked]>
Date: Mon, 11 Jan 1993 22:33:25 -0800

I hope everyone will bear with me as I ask a series of stoopid questions.
To start with, is it possible to lock an exit with more than 1 key?

Tim

-- 
       ________________________________________________________________
      {                        Tim Sailer                              }
      {  Internet: [email-masked]        UUCP: ..!uu.psi.com!jptcs!tps  }
      {----------------------------------------------------------------}
      {        Camp food always tastes better in the dark!             }
      {________________________________________________________________}

---

From: Pavel Curtis <[email-masked]>
Date: Tue, 12 Jan 1993 15:02:10 -0800

> Date:	Mon, 11 Jan 1993 22:33:25 -0800
> From:	Tim Sailer <[email-masked]>
> 

I'm not entirely sure that I know what you mean, but I'll try anyway.  There
are two things I can think of that `locking something with more than one key'
might mean:
	-- Both keys are necessary to enter
	-- Either key is sufficient to enter
Since the `key expression' language includes the `&&' (logical `and') and `||'
(logical `or') operators, it should be straightforward to get either of these
two behaviors.

For example, suppose that I have two objects, an `orb' and an `amulet' and I am
interested in locking the `north' exit from my current room.  If I type
	@lock north with orb && amulet
then a player must possess *both* the orb *and* amulet to go north.  On the other
hand, if I type
	@lock north with orb || amulet
then any player holding *either* the orb *or* the amulet can go north.

If this isn't clear enough, feel free to send me a more detailed questions and
I'll try again.

	Pavel