Ignoring color codes.

Posted by Dace K on Sat 12 Jun 2004 09:55 PM — 3 posts, 13,371 views.

Canada #0
Is there any way to get smaug to ignore color codes, especially in triggers for mud progs?

Only, it would be quite nice not to have to always have to enter in triggers like
act p puts the unicorn medal&w in an old fountain.

..yeah.
Canada #1
Yeah, there can be, but not a default one. You would need to make a new trigger type, "actignorecolor" or something, have it an exact duplicate of the normal act trigger check, and just have it strip out the color from the string. If you need a strip_color function, I'm sure there are several different ones available on this forum. Hope that helps.
Canada #2
Thanks, that should do it.