Re: disallowing color in certain channels

From: NeoStar (
Date: 08/19/01

> You didn't state which particular system you're using, and I'm not
> with it based on your description.  I assume that there is some sort of
> function where all the text is filtered to replace the &n with the
> appropriate color strings.  You should probably modify that function to
> a parameter indicating that colors should be ignored.  The problem with
> is that you'd have to modify all the functions calling that function,
> probably including send_to_char, act, etc.
> Another way to do it would be to add a flag to the player's descriptor
> you could toggle when you want to ignore color.  You'd have to have a
> reasonably safe mechanism in place to make sure the toggle resets at the
> appropriate time.  Of course, you would still need to modify the filter
> function to check the toggle.

The way I wanted to have it done was (I thought I specified it already,
sorry if I was vague) that in the function I want to disallow color in,
just create a little function that, when called, it ignores the & modifier
in the specific function it is called from within. Maybe not ignore... but
at the moment that is the best word I can think of.


   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/06/01 PST