[1472] in Coldmud discussion meeting

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

Re: Questions

daemon@ATHENA.MIT.EDU (Tue Nov 16 11:12:17 1999 )

From: rozzin@geekspace.com (Joshua Rosen)
To: coldstuff@cold.org
Date: Tue, 16 Nov 1999 10:41:15 EST
Reply-To: coldstuff@cold.org

>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.

Yes--look into CML (Cold Markup Language, or something like that--read ?cml); feed CML-containing strings to $compiler.compile_cml, and it'll spit out Ctext frobs, which can be fed to $user.tell (or $user._tell) and will be translated into whatever format the user has set their content-type settings to (ansi, html, tkMOO...).

A while back, I added a setting in my system so that users could choose to have their speech, emotes, etc. parsed for CML. I had to make a few little changes to be able to use the `append' method on strings with Ctext frobs.

>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). 

`user()' returns the user.
`sender()' actually returns whatever object called the current method.