Help

Posted by Nick Gammon on Sat 14 Feb 2004 07:45 PM — 3 posts, 9,500 views.

Australia Forum Administrator #0
Sure, that is easy.

Make a trigger:

Match: * attacks you with weapon
Send: %1
Send to: variable:
Variable: target
Australia Forum Administrator #1
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 *"
Australia Forum Administrator #2
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.