ANSI Coloring

Posted by Asean Novari on Wed 20 Oct 2004 08:24 AM — 6 posts, 24,314 views.

USA #0
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..
Amended on Wed 20 Oct 2004 08:27 AM by Asean Novari
USA #1
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.
USA #2
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.
USA #3
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
Canada #4
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
#5
last I heard swreality.net
was gutted

there's nothing there