Hmm. Not really.. It is about as bad as I figured. lol The trigger I suggested would sort of work, if you made it look for up to say 40 characters, but there is no real way to tell the title appart from say the second line, or the third, etc.
I suppose you might try:
<triggers>
<trigger
enabled="y"
lines_to_match="3"
match="^$\n^\.*$\n^[:upper:].*"
multi_line="y"
regexp="y"
</trigger>
</triggers>
This assumes that there is 'always' a space between other text and the room name. Like:
Quote: Dec 12-26, 2004 5:57PM> south
Seahaven, Town Square Morning Cloudy
The large town square is cobbled in small smooth stones of a dark
color. Several small time vendors try to push their wares at the
top of their voices. In the middle of the square stands a large statue
with a fountain encircling it, and a handsome wrought-iron bench set
on each side. To the west an arch leads into a handsome building.
Dec 12-26, 2004 5:57PM>
Basically, the expression is like this:
^$ - match a blank line (if no spaces are on it).
\n - new line.
^.*$ - match any number of characters on a single line.
\n - new line.
^[:upper:].* - match only if this is an uppercase character at the start of the line, then follow by any number of other characters.
One you copy the trigger in, you will still need to set what color you want it to be. through editing. This 'should' work for all rooms. However, it will also incorrectly match in any situation where this pattern happens. This likely includes descriptions that are broken up:
Quote: Some room
This is a room.
The room doesn't have much in it....
It has a dirty floor.
The trigger would also incorrectly match on the first line of the second paragraph in the above case.
...... Actually, the trigger I provided won't actually work. Since it matches on the text of the line that follows the title as well, it would color both the title and the line that follows it. I don't know of any way that you can exclude that line, but still match on it so the trigger works.... :( You might have to capture the lines, then fiddle with 'omit from output' and redisplaying them through scripting using the 'colournote' command.
I think this may be a case where you just can't do it easilly. Likely the muds staff did this intentionally, not to prevent coloring it, but just to make capturing the titles difficult. Some muds do stuf like this to make it much harder for people to use automappers. Others just because they are too damn lazy to make the text pleasing to read. ;) |