----- Original Message -----
From: "Mike" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, May 18, 2002 7:09 PM
Subject: Lope's Colour
> Alright...retarded question:
> I'm using Lope's Colour...my question - How can I add the colours to
> variables? Not character strings...variables.
> ex:
> send_to_char("{RYadda Yadda", ch);
> that's very easy...then you have something like:
> sprintf(buf,ch);
> now, I know that I could easily just go find the buf char and add colour
to
> the string...but how can i add colour to that so that no matter what the
> input is, the output will always be a colour, or just something like that.
> For example, when the name of a room is read or the keyword on the help
> files is read, have them displayed in colour. does that make sense? I
know
> that I just don't use:
> sprintf({rbuf,ch);
> it's more than that...I'm just not sure. Could someone help me out?
> thanks,
> -tarian
>
>
Ok... if I am reading this right, then you would just need to find where it
calls the string and add in the color codes
(i.e.. from do_look: "look" or "look auto" in act_info.c)
sprintf(buf, "{v%s{x", ch->in_room->name);
send_to_char(buf, ch);
This will (on my old mud anyway) bold the room title to anyone who has ANSI
enabled.
I hope that helps... if not what you were looking for, then I am at a loss
for thought.