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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Help

Help

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


Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Sat 14 Feb 2004 07:45 PM (UTC)
Message
Sure, that is easy.

Make a trigger:

Match: * attacks you with weapon
Send: %1
Send to: variable:
Variable: target

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 14 Feb 2004 10:12 PM (UTC)
Message
No, that was a "fill in the boxes" example. The copy-and-paste one looks like this:


<triggers>
  <trigger
   enabled="y"
   match="* attacks you with weapon"
   send_to="9"
   sequence="100"
   variable="target"
  >
  <send>%1</send>
  </trigger>
</triggers>


However that needs to exactly match. For instance if it is "Bob the Terrible attacks you with weapon" or "Bob the Terrible attacks you with a sword" then you need to change the trigger match a little bit.

For instance, the "match" part might be better as:

match="* attacks you with *"

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 15 Feb 2004 02:11 AM (UTC)
Message
The XML code above should have checked the "enable" box which should be all you need. Press the "help" button to find out what the other ones do.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


6,488 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 HostDash]