Page 1 of 1
#SUB equivalent.
Posted: Sat Oct 23, 2010 6:21 am
by Tahlnaith
I'm looking to make a series of triggers that substitute words or lines. Is there a Mudlet equivalent of zMUD's #SUB?
Re: #SUB equivalent.
Posted: Sat Oct 23, 2010 6:42 am
by syrik
I think it is select line () and delete line ()
Re: #SUB equivalent.
Posted: Sat Oct 23, 2010 8:43 am
by Heiko
http://mudlet.git.sourceforge.net/git/g ... AD#replace
For more information check out the API documentation on these functions: selectCaptureGroup(), selectString(), selectCurrentLine(), replace and deleteLine()
Note that Lua is case sensitive.