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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  ANSI Coloring

ANSI Coloring

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


Posted by Asean Novari   USA  (82 posts)  [Biography] 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..



[Go to top] top

Posted by Mirrodan   USA  (28 posts)  [Biography] 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
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] 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.
[Go to top] top

Posted by Asean Novari   USA  (82 posts)  [Biography] 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



[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by Cirus   (22 posts)  [Biography] 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
[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.


16,049 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]