[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
>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.