[1614] in Coldmud discussion meeting

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

Re: Putting colour in emotes, says, and other things like that...

daemon@ATHENA.MIT.EDU (Fri Aug 18 10:02:40 2000 )

In-Reply-To: <20000818063210.KKGJ9493.mta01.onebox.com@onebox.com>
From: "Joshua Rosen" <rozzin@jello.geekspace.com>
To: coldstuff@cold.org
Date: Fri, 18 Aug 2000 14:00:23 GMT
Reply-To: coldstuff@cold.org


Kris Anderson writes:

> Is there a way to impliment colour in the above mentioned commands? 
> For example if a user wanted to have red text in one word and green in
> another word in a pose can it be done?

In $body.emote_cmd, say_cmd, etc., you can run the string(s) through
$compiler.compile_cml, and use the returned ctext frob instead of the
string(s).

This would mean that whatever someone types along with a `say' command, for
example, gets parsed as CML, and braces need to be escaped if they don't
want them to be parsed this way.

If you do this, it's probably a good idea to make the parsing an optional
feature, somehow, like by having a :parse-cml=[boolean] setting on bodies.