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
➜ Area Editor
➜ General
➜ How i can modify the layout of room description ?
How i can modify the layout of room description ?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Fegat\\n0
(2 posts) Bio
|
Date
| Wed 05 Jun 2002 08:34 AM (UTC) |
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 (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 05 Jun 2002 10:54 PM (UTC) |
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 (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Wed 05 Jun 2002 11:03 PM (UTC) |
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.
11,106 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top