#SUB equivalent.

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

#SUB equivalent.

Post by Tahlnaith » Sat Oct 23, 2010 6:21 am

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 » Sat Oct 23, 2010 6:42 am

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 » Sat Oct 23, 2010 8:43 am

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

Who is online

Users browsing this forum: No registered users and 1 guest