problem with a trigger

Posted by Hefan on Sat 21 Aug 2004 05:12 AM — 3 posts, 13,093 views.

#0
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!

USA #1

<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.
Amended on Sat 21 Aug 2004 10:28 AM by Flannel
#2
thanks a lot! that works great:)