Register forum user name Search FAQ

Gammon Forum

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 ➜ General ➜ problem with a trigger

problem with a trigger

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


Posted by Hefan   (12 posts)  Bio
Date Sat 21 Aug 2004 05:12 AM (UTC)
Message
o.k. this is whay i have:
<trigger enabled="y" sequence="40" match="^\"slippery elm(\d+)\".*? slippery elm \((\d+) puffs\).*?$" regexp="y" send_to="12"><send>call elmcount(%2)</send></trigger>

and this is what i hope to match with this trigger:
"slippery elm248685" slippery elm (9 puffs)

but when i tried to load the trigger, it gives me an error message: Line 32: Attribute name 'slippery' not followed by '=' (problem in this file)

can anyone tell me where i did wrong and how to fix it? thanks!

Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Sat 21 Aug 2004 10:26 AM (UTC)

Amended on Sat 21 Aug 2004 10:28 AM (UTC) by Flannel

Message

<triggers>
  <trigger
   enabled="y"
   match="^\&quot;slippery elm(\d+)\&quot;.*? slippery elm \((\d+) puffs\).*?$"
   regexp="y"
   send_to="12"
   sequence="40"
  >
  <send>call elmcount(%2)</send>
  </trigger>
</triggers>


Try that. Your problem was the " inside your Regexp need to be &quot; when pasting. You know you could just paste all these things into your world file, than pasting them all through the trigger dialog, right?
Also, instead of copying from your world file, you can copy your triggers via the trigger dialog, and it will automatically convert all this. But you can run into problems when going between the methods.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Hefan   (12 posts)  Bio
Date Reply #2 on Sun 22 Aug 2004 05:59 PM (UTC)
Message
thanks a lot! that works great:)
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.


12,520 views.

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

Go to topic:           Search the forum


[Go to top] top

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