Register forum user name Search FAQ

Gammon Forum

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 ➜ Color at char creation

Color at char creation

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by OniPanda   (16 posts)  Bio
Date Wed 05 Nov 2003 10:28 AM (UTC)

Amended on Wed 05 Nov 2003 10:32 AM (UTC) by OniPanda

Message
I added samson's color to my code, and it works just about everywhere, except for when you create a new character. I also added ansi login (forcing ansi right now), and it displays the color properly in the greeting file, and I can make it show color when it asks for the password of an existing character, but it wont show color for anything past

sprintf( buf, "\n\rChoosing a name is one of the most important parts of this game...\n\r"
              			"Make sure to pick a name appropriate to the character you are going\n\r"
               			"to role play, and be sure that it suits a medieval theme.\n\r"
               			"If the name you select is not acceptable, you will be asked to choose\n\r"
               			"another one.\n\r\n\rPlease choose a name for your character: ");
          send_to_desc_color( buf, d );

(it shows color in that part though).

I've been thinking about this problem for the past 2 days and have come up short. Is there something I'm missing?
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Wed 05 Nov 2003 04:20 PM (UTC)
Message
I had the exact same problem with that code, I'm running SWR, that might be why, I dunno, but I forced the color codes. I know that this might be bad, but who doesn't run an ansi-capable client, regardless of whether they use colors or not. You might try that.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by OniPanda   (16 posts)  Bio
Date Reply #2 on Wed 05 Nov 2003 07:45 PM (UTC)
Message
Thanks, it works that way, but it's a whole lot more messy (thankfully I'm only using 2 colors so I don't have to use a bunch and get confused on what color i'm puttin in).

Still if anyone knows why it does that, I'd like to know.
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.


12,355 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.