|
How i can modify the layout of room description ?
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Fegat\\n0
(2 posts) bio
|
| Date |
Wed 05 Jun 2002 08:34 AM (UTC) [ quote
] |
| Message |
In the original source code the layout of room was:
Title of the room
Description Description Description Description
Description Description Description Description
Description Description Description Description
Description Description Description Description
Exits nord south est up
Mob
i want to modify this layout in
Title of the room <= in yellow
Description Description Description Description <= in grey
Description Description Description Description <= in grey
Description Description Description Description <= in grey
[Exits: Nord South Est Up] <= in grey (where the first letter of exit is in upper case and in yellow)
Mob <= in grey
anyone can help me?
pls
mau | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Wed 05 Jun 2002 10:54 PM (UTC) [ quote
] |
| Message |
This is not really an Area Editor question, because the area editor just stores the description as pure text. You would need to modify the SMAUG server (or ROM server) to display the colours you want. For example, right now in SMAUG, in file act_info.c, around line 992 are the lines:
set_char_color( AT_RMNAME, ch );
send_to_char( ch->in_room->name, ch );
send_to_char( "\n\r", ch );
set_char_color( AT_RMDESC, ch );
[\mono]
Similarly, further down in "do_exits" is the code for the exit colour ...
set_char_color( AT_EXITS, ch );
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #2 on Wed 05 Jun 2002 11:03 PM (UTC) [ quote
] |
| Message |
After reading the code a bit more it seems they have allowed for colour customisation already. In the system folder there is a file COLORS.DAT. Edit that, to change your colours. Here is part of it:
1048 roomname~ 15
1049 roomdesc~ 11
1050 object~ 10
1051 person~ 13
1052 list~ 12
1053 bye~ 10
1054 gold~ 11
1055 gtell~ 12
1056 note~ 10
1057 hungry~ 3
1058 thirsty~ 12
1059 fire~ 9
1060 sober~ 15
1061 wearoff~ 11
1062 exits~ 15
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
1,396 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )