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
➜ newbie coloring question
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
3
4
Posted by
| Devbmx
(50 posts) Bio
|
Date
| Tue 16 Mar 2004 08:51 AM (UTC) |
Message
| ok i have a very newbie question IMHO. I want to add color to everything ie. You say, hello. i want to have "you say." dark blue and "hello." to be light blue, how would i do this? And sorry if this is answered anywhere i tried searching but didnt find anything like this. | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Tue 16 Mar 2004 08:55 AM (UTC) |
Message
| If you want multiple colors in the same string, the easiest way to do this is to edit do_say in act_comm.c, find the part that says "you say", and add the color codes in manually. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Devbmx
(50 posts) Bio
|
Date
| Reply #2 on Tue 16 Mar 2004 05:50 PM (UTC) |
Message
| allright how should i edit it? i tried to do it like this (very new to this so sorry of if i sound like an idiot) "you say, AT_DBLUE '$T' AT_LBLUE" i dunno if thats how you meant on put it directly into the code but that didnt work | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #3 on Tue 16 Mar 2004 05:59 PM (UTC) |
Message
| Something more like
at_dblue "you say, " at_lblue "hello"
(yes, yes, I ignored caps for the color codes)
|
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Devbmx
(50 posts) Bio
|
Date
| Reply #4 on Tue 16 Mar 2004 07:22 PM (UTC) |
Message
| still no dice on it, i tried it exactly like you said and its still showing up all that on ugly stock color =\ | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #5 on Tue 16 Mar 2004 08:05 PM (UTC) |
Message
| Simply adding the color tags won't do anything if your print function doesn't support color. There are a few other threads along similar lines you might want to read up on if you're serious about doing this. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Devbmx
(50 posts) Bio
|
Date
| Reply #6 on Tue 16 Mar 2004 09:09 PM (UTC) |
Message
| allright i really feel incredably stupid on this, but i have no idea what you mean and ive tried searching the forums for colors but nothing was like what i needed, and ive been searching for snippets all day and still nothin on it. | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #7 on Tue 16 Mar 2004 09:53 PM (UTC) |
Message
| Are you getting compilation errors with it? Is it rebooting properly after you compile? |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Devbmx
(50 posts) Bio
|
Date
| Reply #8 on Tue 16 Mar 2004 10:21 PM (UTC) |
Message
| as far as i know of its working, i see alot of bugs on fread something when i reboot | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #9 on Tue 16 Mar 2004 10:29 PM (UTC) |
Message
| Your not getting any errors while compiling? You can also paste your code here, and we will take a look. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #10 on Tue 16 Mar 2004 10:44 PM (UTC) |
Message
| A quick search for send_to_char found this forum which is one of the ones I was specificly refering to for color support in what youre trying to send to the characters.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3416 |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Devbmx
(50 posts) Bio
|
Date
| Reply #11 on Wed 17 Mar 2004 12:43 AM (UTC) |
Message
| i did what it said in that post and what you said and still nothing. Maybe its cuz i dunno exactly what he did, he talks about how he didnt see the "else" and i dunno wtf that is but i commenteed everything out that he shows he did | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #12 on Wed 17 Mar 2004 02:29 PM (UTC) |
Message
| You mention on another post that you can't get cygwin to compile. After you are changing your .c files, are you compiling these changes into a new executable file? If you are not compiling, or if the compiling fails, then you will not see any changes. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Devbmx
(50 posts) Bio
|
Date
| Reply #13 on Wed 17 Mar 2004 07:38 PM (UTC) |
Message
| no i cant even get cygwin to install, 9 out of 10 times the setup program locks up, and when i do get to install it, it somehow takes up around 900mb while installing, and ive deleated just about everything on my computer i can to make room for it, and when i was able to use VC++ to compile i had TONS of errors but i think thats cuz i went in and tried to do what i thought i needed to, and it wasant so if/when i can get cygwin to DL im gonna try fuss | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #14 on Wed 17 Mar 2004 08:23 PM (UTC) |
Message
| The source on this site should compile under Visual Studio with little problems.
Cygwin *does* take a lot of disk to install, however these days hard disks are cheap. Perhaps upgrade your disk, or add a second one? |
- 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.
117,699 views.
This is page 1, subject is 4 pages long: 1 2
3
4
It is now over 60 days since the last post. This thread is closed.
Refresh page
top