Help with triggers?

Posted by Neva on Fri 08 Jun 2001 02:11 AM — 9 posts, 31,195 views.

USA #0
Meep. I haven't had problems with this in a long time, but since moving to the new version, without the default triggers there, I can't seem to get my channel-trigger... which I've set up to look just like the one from an older world that works, as far as I can see... to evaluate for all the lines of a given channel-pose.

Any idea what I could be doing wrong, and how to fix this?
Australia Forum Administrator #1
Have you checked the "regular expression" box? That will make a difference.
USA #2
Yes, it's checked. Everything looks exactly like it does in the original world. Along a similar thought, it might be nice if you could provide a trigger-file with all the old ones in it, just to make creation of new worlds a little easier.

I also just looked and tried copying down what you had on the release notes for 3.06... that doesn't work, either.
Australia Forum Administrator #3

OK, good idea. Click on the link below to get a copy of the triggers that used to be in earlier versions of MUSHclient:

MUSH triggers for MUSHclient (389 bytes).

You will need to go to the world Configuration screen -> triggers tab, and then click on Load, to load these triggers in.

Amended on Tue 12 Jun 2001 03:14 AM by Nick Gammon
USA #4
Okay, I've tried using these, and it's still only highlighting the first line. Strange...
Australia Forum Administrator #5
Ah I see. Depending on which MUD you are on this might happen.

MUSH and MUCK's tend to send things down as a paragraph, whereas Diku-style MUDs might have each line as a separate line, and a trigger will only match on a line (paragraph). In other words it will match up to a newline.

You can tell the difference, as MUSHclient indents the second and subsequent lines of paragraphs. Are the ones in question indented or not?
USA #6
The problem with this is that one, this is a MOO, and two, it's a MOO that I have another character on, and the other character's world works just fine. This is just bizarre.
Australia Forum Administrator #7
Send me an email with the world file in it (blank out your password and character name), so I can try it myself. :)
Australia Forum Administrator #8
OK, problem solved, I think. :)

Your problem is that the MOO is wrapping lines for you, thus MUSHclient is actually getting two lines, not one big one, and the trigger is only matching the first line. I logged on to the MOO and took a look at this help:


help @linelength
Syntax:  @wrap <on|off>
         @wrap

         @linelength <number>
         @linelength

If the lines you see get cut off at the edge of your screen (you don't have
word-wrap), you can get LambdaMOO to split lines for you.  The @linelength
command tells the MOO how many columns you have on your screen--you probably
want @linelength 79--and "@wrap on" tells the MOO you want it to do word-
wrap.

It's better if you can fix this problem without LambdaMOO's help, though,
because the MOO's solution will be slower than a local solution, and
because not all MUDs are willing to do word-wrap.





I tried typing @wrap, and found wrap was on. When I turned it off (@wrap off) the problem went away.


@wrap
Usage: @wrap on|off
Word wrap is currently on.
@wrap off
Word wrap is now off.


Of course this was for the guest character, but I bet your character is set up the same. :)