[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Area Editor
. -> [Folder]  General
. . -> [Subject]  How i can modify the layout of room description ?

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: How i can modify the layout of room description ?
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date 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
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date 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
[Go to top] top

Posted by Fegat\\n0   (2 posts)  [Biography] 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
[Go to top] 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,410 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]