Trigger Problem

Posted by Ves on Sun 18 Apr 2010 02:49 AM — 4 posts, 15,918 views.

#0
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?
USA #1
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!
#2
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!
USA #3
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.