You will also need the 'Repeat On Same Line' option checked, so that it will match against the entire line, and not just the first matching part.
And as for the 'Send To Script' part that COULD be accomplished in LUA with...
SetVariable("%1",1)
also as for capturing the doors that trigger COULD be re-designed to something as follows,
(north|south|east|west|northwest|northeast|southeast|southwest)(?:\s\(open (.*?)\))?
Then you could do a check on the "%2" (cause the ?: makes it not capture that outer section) to see if it is not equal to an empty string "", and if not you can do...
SetVariable("%1",1)
SetVariable("%1_door","%2")
Or something along those lines, so that you can store the actual name of the door you have to open, cause it was unclear if you would see door, gate, or other names in place of door, so I prepared for the worst.
Laterzzz,
Onoitsu2 |