multy_line trigger & omit output

Posted by Aryeh on Fri 27 Feb 2015 03:31 PM — 2 posts, 12,043 views.

#0
Hi, I'm using the 'Two Towers' mapper plugin adapted to another mud, and it works so nice, but I have a little problem.
It's an smaug based mud in spanish. And what I get from the mud is what follows:

En el interior de las Salas de Reposo  <--Room Name
  Aquí se pueden apreciar más ricas decoraciones en las paredes de madera, 
quizá porque al ser interiores no han sido tan deterioradas. También se 
puede apreciar algún tapiz que cuelga de las paredes. Los magos de la 
Torre se encargan de que pequeñas esferas luminosas iluminen la estancia 
constantemente. Hacia el sur se encuentra la sala donde se atiende a los 
viajeros, mientras que hacia el norte se encuentra la plaza.  <-- Room Description
Salidas: norte sur.  <-- Exits


The trigger I'm using is:

<triggers>

  <trigger
   enabled="y"
   lines_to_match="50"
   match="^(?P&lt;roomname&gt;.*)\s{2}(?P&lt;roomdesc&gt;.*\n(\S.*\n)*)\sSalidas: (?P&lt;exits&gt;.*)\.\Z"
   multi_line="y"
   regexp="y"
   omit_from_output="y"
   name="mapper_trigger"
   script="process_room_description"
   sequence="100"
  >
    </trigger>


I don't know if it's as correct as it should but it aparently does the job.
I'm adapting it to be used by blind players cause even if they can't see the map, at least they can take a great advantadge of the 'mapper find' 'mapper goto' and so options. And here is where I got the problem. They majorly play with the config +brief active to avoid an excess of outputs in they screen readers, and due to the abundance of rooms with the same name I need to catch the descriptions. So I thougth of omiting all the output and resend the roomname and the exits via Note( roomname ) Note( exits ), but the omit_from_output="y" is not doing the job.
Any suggestions about what I may be doing wrong will be highly appreciated. Thanks.
Amended on Fri 27 Feb 2015 05:56 PM by Aryeh
Australia Forum Administrator #1
Omit from output doesn't work with multi-line triggers. You may need to rework the way it detects the room descriptions.