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 ➜ ANSI Coloring

ANSI Coloring

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


Posted by Asean Novari   USA  (82 posts)  Bio
Date Wed 20 Oct 2004 08:24 AM (UTC)

Amended on Wed 20 Oct 2004 08:27 AM (UTC) by Asean Novari

Message
I have looked through all of the FAQ's and other articles in
the forum for information on this part of ANSI color but could
find nothing.

I am using SWR 1 Fuss gotten here modified only with a hotboot
snippet of Greven's.

My player makes a container that has multiple colors in it..
** makecontainer about &GA Large &RRa&Bi&Gn&bb&Row Colored Backpack&W


Normally if he only uses one color per word they get entered
as the keywords properly.. but the second he switches to a
different color in the same word the keyword to
use/remove/wear the item has to be used color coded like it
was when the item got made.

EX: makecontainer about A &Rred&W belt = Keywords: A red belt
    makecontainer about A &Rr&red&W belt = Keywords: A &Rr&rred belt


How do i change the code to make it so that it dosent
require the user to enter the color codes to use the item by
its keyword..



Top

Posted by Mirrodan   USA  (28 posts)  Bio
Date Reply #1 on Wed 20 Oct 2004 10:39 AM (UTC)
Message
when setting keywords the player shouldn't be using colors unless for some reason the colors are also defining what the object looks like. So unless they're setting the short or long desc. of an object tell them to keep the color out of the keywords. The reason for this is because the keywords should be setup to be matched identically that's why it's doing that.
Not sure if that's what you're looking for but, the best i can do or say.

Admin and Head Coder
For Techno-Magicka
techno-magicka.dreasphere.org 4000
AIM: tchnmgck
MSN: newell_everett@hotmail.com
YAHOO: everettnewell
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #2 on Wed 20 Oct 2004 11:08 AM (UTC)
Message
You may also need to alter the makecontainer command to properly strip color tags from the keyword. From what you show here it's not doing that.
Top

Posted by Asean Novari   USA  (82 posts)  Bio
Date Reply #3 on Thu 04 Nov 2004 07:38 PM (UTC)
Message
Thank you Samson for atleast setting me on the right path..

I would appreciate a visual example of what i have to change.
I dont need all of the work done for me just a small example
to set me on my way would be immensly helpful...

Also are all the parts that need changing in the same place or
do I have to searh through other files to to modify it so I
dont get errors when i try to recompile

Please and Thanks



Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #4 on Thu 04 Nov 2004 09:17 PM (UTC)
Message
This exact issue is adressed at http://swreality.net under coders corner. They have the fix as well as the function you need to strip colors out of names, but not descriptions

Nobody ever expects the spanish inquisition!

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

Posted by Cirus   (22 posts)  Bio
Date Reply #5 on Sat 06 Nov 2004 03:54 PM (UTC)
Message
last I heard swreality.net
was gutted

there's nothing there

CiRuS ThE ViRuS
Star Wars Spiral Void
wildcat1245@up-link.net
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.


18,221 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.