[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Trigger Problem

Trigger Problem

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Ves   (8 posts)  [Biography] bio
Date Sun 18 Apr 2010 02:49 AM (UTC)
Message
Hello,

I play Achaea and have a security trigger set up. However it won' trigger. Its the following:

I just want when this occurs:

You relax your muscles and attune yourself to your Master Crystal feeling its vibrations draw your soul.

to use the emote "no"

I have several similar basic triggers to wear my gloves if removed for example, same 1 message 1 response trigger. But this one will not trigger for some reason.

Any thoughts or is this a bug of some type?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Sun 18 Apr 2010 06:50 AM (UTC)
Message
Looks like a long line. If it's more than 80 characters - which it is, it's 104 - it wraps into two lines by default on Achaea. It's a setting called "screenwidth", and the server cuts up lines to make sure they fit on-screen before sending. So your line would look like this:

You relax your muscles and attune yourself to your Master Crystal feeling its
vibrations draw your soul.


The server cuts it up into two lines, but a basic trigger only matches one at a time. Now, screenwidth is mainly useful for console clients that have limited screen real estate, or can't wrap the strings client-side. However, MUSHclient can quite easily do client-side wrapping.

There are basically two "easy" solutions. First, you can use a multiline trigger (check "Multiline" in the dialog and set it to 2, then hardwire the newline into the pattern after the "its"). That's simple enough with this line, because it's static, but what if you have a line with dynamic content? It's somewhat difficult - or at least not immediately easy - to match, say, a long tell or channel message properly.

The second solution is easier, more consistent, and the one I prefer. You simply disable server-side wrapping (CONFIG SCREENWIDTH 0), and enable client-side wrapping. If you follow the directions below, you should never notice the difference... except it suddenly becomes waaaay easier to match long lines.


1. Make sure you use CONFIG SCREENWIDTH 0 in Achaea to disable server-side wrapping

2. In MUSHclient, go to File -> World Properties, and click to the Output panel.

3. At the bottom, check "Wrap output at column number". Set the box to its right to 80.

4. Make sure "Indent paragraphs" is UNchecked on the right side of the panel.

5. Click OK.


That should do it. Hope that helps!

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Ves   (8 posts)  [Biography] bio
Date Reply #2 on Mon 19 Apr 2010 05:27 AM (UTC)
Message
Thank you so much. Fixed it with step 2.

Had no clue why it wasn't working, kept some of my other curing reflexs down as well. Thanks again!
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #3 on Mon 19 Apr 2010 08:47 AM (UTC)

Amended on Mon 19 Apr 2010 08:48 AM (UTC) by Twisol

Message
Ves said:

Thank you so much. Fixed it with step 2.

Had no clue why it wasn't working, kept some of my other curing reflexs down as well. Thanks again!


Step two just tells you to go to the Output panel. O_o

Sure! Glad I helped.


EDIT: Strictly speaking, you only needed step 1 to "fix" it, but I figure you'd like to keep things looking the same way too.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] 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.


10,888 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]