Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ color in SmaugFuss

color in SmaugFuss

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by De Martino   Italy  (54 posts)  Bio
Date Sun 14 Mar 2004 11:32 PM (UTC)
Message
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
Top

Posted by Ithildin   USA  (262 posts)  Bio
Date Reply #1 on Mon 15 Mar 2004 01:53 AM (UTC)
Message
look it up in the code.
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #2 on Mon 15 Mar 2004 02:20 AM (UTC)
Message
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.

~Nick Cash
http://www.nick-cash.com
Top

Posted by De Martino   Italy  (54 posts)  Bio
Date Reply #3 on Mon 15 Mar 2004 09:37 AM (UTC)

Amended on Mon 15 Mar 2004 09:52 AM (UTC) by De Martino

Message
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #4 on Mon 15 Mar 2004 10:16 AM (UTC)
Message
Looks like colors are player-chosen. The default colors are probably in color.c.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #5 on Mon 15 Mar 2004 12:31 PM (UTC)

Amended on Mon 15 Mar 2004 12:33 PM (UTC) by Samson

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

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


19,984 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.