Ansi Editing Problem

Posted by Cody Mercer on Sat 30 Jun 2012 07:46 PM — 4 posts, 17,035 views.

#0
Hello,

I'm currently building on my project ( I don't do the coding ) but we added 256 ansi recently and I can't really read dark colors good and whenever I try to switch the color to a lighter color it doesn't change? I think it's because I can only edit the 8 colors.. actually I don't really have a clue.. could someone help me?
Australia Forum Administrator #1
You could add some MapColour calls to your world initialization to remap the way some colours are displayed ...

Template:function=MapColour
MapColour

The documentation for the MapColour script function is available online. It is also in the MUSHclient help file.

#2
I know you must think I'm a retard, hah. I don't have a clue what you're saying to me.
Australia Forum Administrator #3
MUSHclient can replace one colour with another, as it is writing to the screen. This is controlled by the MapColour scripting function. You would need to find the annoying colour(s) to work out its exact RGB components.

You can do this by selecting an example in the output window, go to Display menu -> Text Attributes and then you will see the RGB code (eg. "#0080FF").

Then you can script something like:


MapColour (ColourNameToRGB ("#0080FF"), ColourNameToRGB ("green"))


And ditto for other colours.

Put that line (and the others) into an alias, have the alias "send to script" and call the alias each time you log in. eg. make the alias "fixcolour", like this:


<aliases>
  <alias
   match="fixcolour"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>

MapColour (ColourNameToRGB ("#0080FF"), ColourNameToRGB ("green"))


</send>
  </alias>
</aliases>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.