[1485] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next last

Re: Questions

daemon@ATHENA.MIT.EDU (Wed Nov 17 23:29:43 1999 )

Date: Wed, 17 Nov 1999 21:09:02 -0700
From: Brandon Gillespie <brandon@roguetrader.com>
To: coldstuff@cold.org
In-Reply-To: <000901bf2fec$6d8c93e0$3c302bd1@Samantha>; from Soth on Mon, Nov 15, 1999 at 11:38:27PM -0500
Reply-To: coldstuff@cold.org


--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 15, 1999 at 11:38:27PM -0500, Soth wrote:
> Hello, I have a couple questions that hopefully someone can help me with.
> 1) Is ANSI colors supported what so ever inside the code? I was wanting
> to add color to $body.say_cmd and a few others.

As was mentioned earlier, you want to use CML/Ctext if anything at
all.  Imho you dont want to do it--that should be done by the client.
You can add triggers to nearly any decent mud client for it to
'colorize' things in certain ways.  This is advantageous because it
moves the processing to the client's CPU, instead of the server's.

> 2) I recently was working with $described.description and noticed
> sender() returns $the_pit or whereever you are located. Is there
> something I can use to return the user like $user_soth? I'm trying
> to check to see if the user has a certain flag in a variable I've
> created named pflags so was wanting to check if(flag in pflags).=20

Pass the 'flags' variable to .debug().  It probably contains what you
are interested in.  Specifically, you are probably interested in the
value of flags['actor].  But there are a few others of interest.

-Brandon Gillespie

--pWyiEgJYm5f9v55/
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: wJ0ynPGEFFUPLm5kItc21y0DXlmX/S7M

iQA/AwUBODN73Uv5XoQiMgn6EQLcaQCeNkFwBFYGTkKR6xHQ8B/pWCl8jqcAnRSk
yWjMuWqoX7cIqY54Be9XGZuk
=ZeyH
-----END PGP SIGNATURE-----

--pWyiEgJYm5f9v55/--