#SUB equivalent.

Post Reply
Tahlnaith
Posts: 8
Joined: Sat Oct 23, 2010 6:19 am

#SUB equivalent.

Post 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?

syrik
Posts: 90
Joined: Sat Jun 26, 2010 9:57 pm

Re: #SUB equivalent.

Post by syrik »

I think it is select line () and delete line ()

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: #SUB equivalent.

Post 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.

Post Reply