Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Paste_As_Mush plugin
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kovarid
(15 posts) Bio
|
Date
| Tue 16 Dec 2014 06:37 PM (UTC) |
Message
| 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. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
6,859 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top