color in SmaugFuss

Posted by De Martino on Sun 14 Mar 2004 11:32 PM — 6 posts, 22,260 views.

Italy #0
before with smaug 1.4 used the file colors.dat to vary the colors
with SmaugFuss?
I desire to change color to the Say

You say 'haha' (this has to be of grey color)

how do I do in SmaugFuss?

De Martino
USA #1
look it up in the code.
USA #2
Open up act_comm.c and go to your do_say function and find the following lines:


act( AT_LBLUE, "$n says '$t'", ch, sbuf, vch, TO_VICT );

act( AT_LBLUE, "$n says '$T'", ch, NULL, argument, TO_ROOM );

act( AT_LBLUE, "You say '$T'", ch, NULL, drunk_speech( argument, ch ), TO_CHAR );


Change the AT_LBLUE to what you want the color to be, and in your case (grey), it would be AT_GREY.
Italy #3
Whiteknight

I am sorry but in my act_comm.c there are not these lines the code that I use and' the SmaugFuss. You know how to tell me the solution exact for me?
in act_comm.c I have found lines similar to these:
/* MOBtrigger = FALSE;
act( AT_SAY, "$n says '$T'", ch, NULL, argument, TO_ROOM );*/
ch->act = actflags;
MOBtrigger = FALSE;
act( AT_SAY, "You say '$T'", ch, NULL, drunk_speech( argument, ch ), TO_CHAR );
if ( IS_SET( ch->in_room->room_flags, ROOM_LOGSPEECH ) )
{
sprintf( buf, "%s: %s", IS_NPC( ch ) ? ch->short_descr : ch->name,
argument );
append_to_file( LOG_FILE, buf );
}




De Martino
Amended on Mon 15 Mar 2004 09:52 AM by De Martino
USA #4
Looks like colors are player-chosen. The default colors are probably in color.c.
USA #5
The defaults are in color.h, and yes. The colors in FUSS are user-selectable, so everyone can choose to see things in whatever colors they want.

AT_SAY however is a stock tag, the new color system simply leverages these tags differently.