So...I was messing around in the client a bit and trying to be more informed about how JavaScript works, specifically in the webclient. In digging around, I found a command that does exactly what I want, or close enough at least. There is a built-in function:
The argument t is the text that you want to match, then argument e is the text you would like to put in its place.
For example, if I wanted to replace "You jump unexpectedly." with a blank, I would have a trigger that matches the text "You jump unexpectedly." and has the following JavaScript:
Code: Select all
gwc.output.replace("You jump unexpectedly.","");
This will make it so that if you type the command <jump> then instead of printing the standard response, you will simply get a blank line. I haven't found a way to completely eliminate the line yet...and this may not be possible. But at least SOME of the spam can be eliminated (or changed, if you'd like) using the command above. Cheers!
P.S. Oh, and as far as I can tell, the third argument is to change the color of the line. I haven't messed with it, though.