Hey guys.
I have been using Cagefire2000's Paste_as_mush plugin for a while now and it works beautifully for MUSHes. But I am looking to extend it to work properly with the [ansi()] function that MUSHes use.
Basically the plugin escapes out any special character that the MUSH would process, and converts spaces, newlines, etc. into mushcode.
What I'd like to do is check for [ansi(<color>,<Text>)] and have the code NOT escape it out, so that I can properly color my text with ansi() and then use paste as mush to handle the rest. (I tend to write long descriptions in notepad, then copy/paste it using paste_as_mush into the games)
I am really not sure how to go about this, was hoping someone with more experience with Lua strings would be able to help, or point me in the right direction.
BTW, anything inside the <text> of ansi() needs to be escaped as well.
I have been using Cagefire2000's Paste_as_mush plugin for a while now and it works beautifully for MUSHes. But I am looking to extend it to work properly with the [ansi()] function that MUSHes use.
Basically the plugin escapes out any special character that the MUSH would process, and converts spaces, newlines, etc. into mushcode.
What I'd like to do is check for [ansi(<color>,<Text>)] and have the code NOT escape it out, so that I can properly color my text with ansi() and then use paste as mush to handle the rest. (I tend to write long descriptions in notepad, then copy/paste it using paste_as_mush into the games)
I am really not sure how to go about this, was hoping someone with more experience with Lua strings would be able to help, or point me in the right direction.
BTW, anything inside the <text> of ansi() needs to be escaped as well.