[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  get two words to match in trigger
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

get two words to match in trigger

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


Posted by Fibo   (2 posts)  [Biography] bio
Date Sat 15 Aug 2009 08:00 PM (UTC)
Message
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
[Go to top] top

Posted by Fibo   (2 posts)  [Biography] bio
Date Reply #1 on Sat 15 Aug 2009 08:20 PM (UTC)
Message
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.
[Go to top] top

Posted by WillFa   USA  (525 posts)  [Biography] bio
Date Reply #2 on Sat 15 Aug 2009 08:44 PM (UTC)
Message

<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.
[Go to top] 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.


3,267 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]