Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ multy_line trigger & omit output
multy_line trigger & omit output
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Aryeh
(1 post) Bio
|
Date
| Fri 27 Feb 2015 03:31 PM (UTC) Amended on Fri 27 Feb 2015 05:56 PM (UTC) by Aryeh
|
Message
| 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<roomname>.*)\s{2}(?P<roomdesc>.*\n(\S.*\n)*)\sSalidas: (?P<exits>.*)\.\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. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 28 Feb 2015 03:53 AM (UTC) |
Message
| Omit from output doesn't work with multi-line triggers. You may need to rework the way it detects the room descriptions. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
9,316 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top