MOO-cows Mailing List Archive
How to: Enumerating Room Exits
Date: Sat, 18 May 1996 03:42:01 PDT
From: "Geoffrey King" <G.King@mailbox.uq.oz.au>
Comments: Authenticated sender is <zzgking@dingo>
Content-type: text/plain; charset=US-ASCII
Here is my problem:
I am creating an autonomous object (a mouse). It needs to be able to
randomly choose from one of the available exits in the room and go
Well thats dead easy as a Wizard just use this.location.exits.
Unfortunately normal plebs don't get read permissiion on those exits,
for obvious enough reasons.
So, how do i enumerate the available exits ?
My only though is to write a $utility that :
o runs at wizard level and
o does some sort of security/permission checking on the candidate
o returns a list of available exits.
Sounds useful to me, anyone written the code?
Thanks for suggestions (or code :).
--Geoffrey King--Software Engineer--Ice T Multimedia--
Subject Index |