untermud/DOC/
untermud/DOC/U/
untermud/DOC/U/U-examples/
untermud/DOC/internals/
untermud/DOC/wizard/
untermud/MISC/
untermud/MISC/dbchk/
untermud/RWHO/
untermud/RWHO/rwhod/
From gb1d+@andrew.cmu.edu Tue Mar 10 11:26:03 1992
Received: by hussar (5.57/ULTRIX-fma-071791);
	id AA11205; Tue, 10 Mar 92 11:26:02 -0500
Received: by urc.dco.dec.com (5.65/fma-100391);
	id AA05392; Tue, 10 Mar 92 11:26:00 -0500
Received: by hussar (5.57/ULTRIX-fma-071791);
	id AA11201; Tue, 10 Mar 92 11:25:59 -0500
Received: by andrew.cmu.edu (5.54/3.15) id <AA06445> for untermud@hussar.dco.dec.com; Tue, 10 Mar 92 11:25:49 EST
Received: via switchmail; Tue, 10 Mar 1992 11:25:47 -0500 (EST)
Received: from inferno.ucc.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/service/mailqs/q000/QF.QdjC=we00WC0I0WUkA>;
          Tue, 10 Mar 1992 11:25:32 -0500 (EST)
Received: from inferno.ucc.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/usr18/gb1d/.Outgoing/QF.0djC=p200WC0A4h59P>;
          Tue, 10 Mar 1992 11:25:25 -0500 (EST)
Received: from Messages.7.15.N.CUILIB.3.45.SNAP.NOT.LINKED.inferno.ucc.andrew.cmu.edu.pmax.ul4
          via MS.5.6.inferno.ucc.andrew.cmu.edu.pmax_ul4;
          Tue, 10 Mar 1992 11:25:24 -0500 (EST)
Message-Id: <IdjC=oe00WC0M4h50E@andrew.cmu.edu>
Date: Tue, 10 Mar 1992 11:25:24 -0500 (EST)
From: Gregory Joseph Blake <gb1d+@andrew.cmu.edu>
To: untermud@hussar.dco.dec.com
Subject: strange tab things?
Status: RO

Ok...well...here's something I came up with last night so that you can
have maps in rooms:
--------------------------
_mudconfig defUmac map = 
if (!$actor.loc.maploc) {
     $tmploc = $actor.loc;
} else {
     $tmploc = $actor.loc.maploc;
};
$check = listcnt($tmploc.maplines);
if ($check <1) {
     echo("Sorry, no map available for this location");
     return;
};
echo("You are in: " + $tmploc.nam);
foreach $lin in ($tmploc.maplines) {
     echo($tmploc.("mapline" + str($lin)));
};

_mudconfig privmac map sysobj

---------------------------
It lets you store maps elsewhere, which is also handy when you have a number of
rooms sharing a map, as opposed to having an actual map in each room (which is
were it looks originally.)
properties are stored as so:
lst maplines = 1;2;3;4;
str mapline1 = --------
str mapline2 = |       |
str mapline3 = |       |
str mapline4 = --------


enjoy!
(I also have a map object that I use for adding in maps, it just keeps a
list of how
many  lines to the map there are, then appends stuff to that list.  Do
people have
any ideas about other commands that might be handy? Like to remove ones? Would
you just have it remove the last thing you added?)

-gregory








--
| US-Snail: Gregory J. Blake              |
|           5326 Fifth Ave - Apt. 3       | email:
|           Pittsburgh, PA   15232        |   gb1d+@andrew.cmu.edu
|                                         |   r746gb1d@vb.cc.cmu.edu
| Phone:    (412) MUD-9876                |   gregb@gnu.ai.mit.edu
                  ^^note...new
------------------------------------------------------------------------------
Killing, hugging, what's the diff? - Claire
______________________________________________________________________________
"Dark is a way and light is a place..." - Dylan Thomas
______________________________________________________________________________