get two words to match in trigger

Posted by Fibo on Sat 15 Aug 2009 08:00 PM — 3 posts, 18,413 views.

#0
I'm using Mush client and want to make a trigger so that when I get 'You lost your concentration while trying to cast *'
it will send 'c %1'. But sometimes there are two words to the spell, how do I get it to not confuse 'cure blind' with 'cure light' for example. If you could literally type what I need to put in the trigger box, and in the send box that would be great. Thanks
#1
Oh another question at the end of * is a period, how do I omit this when it executes %1 I don't want anything copied after the spellname. because it has been telling me I don't know spell 'true seeing.' <---that period is messing it up. sorry I suck.
USA #2

<triggers>
  <trigger
   enabled="y"
   match="^You lost your concentration while trying to cast (.*?)\.$"
   regexp="y"
   sequence="100"
  >
  <send>c %1</send>
  </trigger>
</triggers>


see http://www.mushclient.com/pasting for more specific instructions on what to do with the above. :)

(highlight, copy to clipboard, open triggers dialog, click paste button.)

As for getting confused... aren't the messages different? "You lost your concentration while trying to cast cure blind." vs ""You lost your concentration while trying to cast cure light."?

The above sends exactly what the mud sends back. If you can't just type:
c cure blind
to the mud without problems (i.e. aardwolf needs
c 'cure blind'
)
then put the ' marks around the %1 above before pasting.