Welcome to the Builder Academy

Question Changing the color of room names to something unique?

More
08 Oct 2013 14:05 #4389 by Beven
The question doesn't appear to fit anywhere else..

I am doing this for simpler mapping of areas via mudlet. Is there a simple way to change the color of the roomnames so that it DOES NOT match the exits list? This is my first user change request. I think, perhaps nievely, that it would be trivial, but I don't yet know where to look in the code. Or is it in a config file someplace I didn't see?

Please Log in or Create an account to join the conversation.

More
09 Oct 2013 00:51 #4390 by rudeboyrave
in act.informative.c
Code:
send_to_char(ch, "@C%s [ %s] @n", world[IN_ROOM(ch)].name, buf);

the @C is for cyan, maybe change it to @R for red etc..

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.
The following user(s) said Thank You: Beven

Please Log in or Create an account to join the conversation.

More
09 Oct 2013 13:27 #4391 by Beven
Ok... did what you indicated, it compiled fine, but I got the literal @R prepended to the room name. I seem to remember reading something about the color code stuff changing. to use the tab char instead of the @? if that is the case, in the source code would i use /t or literaly hit the tab key?

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 01:09 #4392 by Parnassus
I don't read code but my copy reads:
Code:
send_to_char(ch, "%s", world[IN_ROOM(ch)].name); send_to_char(ch, "%s\r\n", CCNRM(ch, C_NRM)); if ((!IS_NPC(ch) && !PRF_FLAGGED(ch, PRF_BRIEF)) || ignore_brief || ROOM_FLAGGED(IN_ROOM(ch), ROOM_DEATH)) { if(!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOMAP) && can_see_map(ch)) str_and_map(world[target_room].description, ch, target_room); else send_to_char(ch, "%s", world[IN_ROOM(ch)].description);

Is it possible that the colour was changed for your mud, Rave?

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 06:51 #4395 by Ornir
I use the \t in strings in the source code. Works fine.

Luminari - a Pathfinder/D&D inspired adventure!
www.luminarimud.com
luminarimud.com 4100

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 21:36 #4396 by rudeboyrave
yeah, we like the old colorcodes so we have them implemented still. use the tba codes and you should be a go.

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds