Hi all,
Trying to write a trigger that will fire on a room output, will start with a short desc in [] and then up to 4 new lines, then a line with exits, then a line with the people/npcs in the room.
I need it to fire only in this circumstance, as scrying a room will output the same exits/people there, hence all the extra complication.
At the moment I have:
The room output looks like this:
I guess I could try and do a negative lookback on the lines that preclude scrying but that'd be just as complicated :) Any help would be appreciated!
Oh and I'm pretty new to writing regexp, so there may be a lot of newbie errors in that.. I had it working for just the two lines but having trouble extending it to work as I want it to.
-Obby
Trying to write a trigger that will fire on a room output, will start with a short desc in [] and then up to 4 new lines, then a line with exits, then a line with the people/npcs in the room.
I need it to fire only in this circumstance, as scrying a room will output the same exits/people there, hence all the extra complication.
At the moment I have:
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="^\[(.*)\](\n(.*)){0,8}\nThere (is|are)(.*) obvious exits?(.*)\n(?P<followers>.*)\.$"
regexp="y"
send_to="12"
sequence="100"
multi_line="y"
>
The room output looks like this:
[Room Short Desc with map below]
|
*
/|\
@
/
-$
|
Room Description Here.
Possible weather line.
Possible other newline(s).
There are two obvious exits: northeast and southwest.
Person One, Person Two, Person Three, Person 4 and Person 5 are standing here.
I guess I could try and do a negative lookback on the lines that preclude scrying but that'd be just as complicated :) Any help would be appreciated!
Oh and I'm pretty new to writing regexp, so there may be a lot of newbie errors in that.. I had it working for just the two lines but having trouble extending it to work as I want it to.
-Obby