Page 1 of 1

Simple color trigger question

Posted: Sat Oct 29, 2016 5:05 pm
by zakman
Quick question about color triggers. Running Mudlet 3.0.0-delta on Windows 10.

I'm trying to code a color trigger that will highlight my main attack line, so that when things are fast and furious I can easily tell if my attack has gone through. The line I want it to recognize and color looks like this:

Trigger off of: You deftly thrust a simple, sturdy trident into a surly smuggler.
Trigger pattern: ^You deftly thrust (.*) into (.*)\.$ (perl regex type)

The "a simple, sturdy trident" and "a surly smuggler" parts are subject to change, depending on the weapon I'm using and whatever I'm fighting.

I want it to highlight the *entire* line, but the best I've ever been able to do is have it highlight the parts that match the regex - my weapon and whatever I'm attacking. I am sure I am missing something very simple here, but it eludes me. Any assistance would be appreciated.

Re: Simple color trigger question

Posted: Sat Oct 29, 2016 5:10 pm
by zakman
Nevermind...found an answer that works. Important tip: coffee before posting is a good thing (along with the search function.)

For reference, this is the thread with a good solution:
http://forums.mudlet.org/viewtopic.php?f=8&t=6139