Subject: Re: Help?

From: "The Horror, The Horror" <[email-masked]>
Date: Tue, 12 Jan 1993 15:18:59 -0800

Is locking something against a property value possible?
Like, locking the door to the ladies room against players
with non-female gender?

ccn

---

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

> Date:	Tue, 12 Jan 1993 15:18:59 -0800
> From:	"The Horror, The Horror" <[email-masked]>
> 

Yes, but not with the simple @lock/@unlock commands.  To do this, the easiest
way is to override the `is_unlocked_for' verb on either the door (an exit) or
on the room itself.

See `help locking' for more explanation, but you could do this as follows:

	@verb here:is_unlocked_for this none this
	@program here:is_unlocked_for
	who = args[1];
	return is_player(who) && who.gender == "female"
	.