I'm trying to capture certain information on particular lines, then deleteLine().
It seems that the deleteLine() trumps all...the line is deleted but the previous actions on the trigger are ignored. Is that the way it's supposed to work?
Using deleteLine() at the tail of other trigger processing
Re: Using deleteLine() at the tail of other trigger processi
I would suggest checking your logic without the deleteLine() to make sure you have things working appropriately.
I use deleteLine() a lot to remove text from the main window that I have routed to miniconsoles.
example:
I use deleteLine() a lot to remove text from the main window that I have routed to miniconsoles.
example:
Re: Using deleteLine() at the tail of other trigger processi
I did remove deleteLine() as part of my debugging to see what was wrong. Everything worked without the deleteLine(). deleteLine() is the last command in my trigger script. I'm using captures, matches[2] and matches[3] off a perl regex pattern whereas you are using the mudlet system variable line. Could that be the difference?
Re: Using deleteLine() at the tail of other trigger processi
Any chance you trigger is multi-line? or otherwise allowing the cursor to get beyond the line your wanting to delete?
Regarding you follow up, this works for me which uses matches[3]:
Pattern: (Head|Front|Back)\)\s(.*)$
Regarding you follow up, this works for me which uses matches[3]:
Pattern: (Head|Front|Back)\)\s(.*)$
Re: Using deleteLine() at the tail of other trigger processi
It's a single-line trigger