Difference between revisions of "CMud Kill Trigger"

From AvatarWiki
Jump to navigation Jump to search
(Created page with "The following is a simple kill trigger coded for CMUD:")
 
Line 1: Line 1:
The following is a simple kill trigger coded for CMUD:
+
The following is a simple kill trigger coded for CMUD
 +
 
 +
First let's define the tank and/or the leader:
 +
<pre>
 +
<?xml version="1.0" encoding="ISO-8859-1" ?>
 +
<cmud>
 +
  <trigger priority="1960" copy="yes">
 +
    <pattern>^You join (%w)'s group.$</pattern>
 +
    <value>#yesno "Is this the tank?" {#var tank %1} {#var tank ""}
 +
gr</value>
 +
  </trigger>
 +
  <trigger priority="9040" copy="yes">
 +
    <pattern>^%w removes you from %w group.$</pattern>
 +
    <value>#var tank ""
 +
#var leader ""</value>
 +
  </trigger>
 +
  <trigger priority="8080" copy="yes">
 +
    <pattern>^You stop following %w.</pattern>
 +
    <value>#var tank ""
 +
#var leader ""</value>
 +
  </trigger>
 +
  <trigger priority="9090" copy="yes">
 +
    <pattern>^&amp;leader's group:</pattern>
 +
  </trigger>
 +
</cmud>
 +
</pre>
 +
 
 +
[[Category: Scripting]]

Revision as of 18:59, 2 February 2013

The following is a simple kill trigger coded for CMUD

First let's define the tank and/or the leader:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="1960" copy="yes">
    <pattern>^You join (%w)'s group.$</pattern>
    <value>#yesno "Is this the tank?" {#var tank %1} {#var tank ""}
gr</value>
  </trigger>
  <trigger priority="9040" copy="yes">
    <pattern>^%w removes you from %w group.$</pattern>
    <value>#var tank ""
#var leader ""</value>
  </trigger>
  <trigger priority="8080" copy="yes">
    <pattern>^You stop following %w.</pattern>
    <value>#var tank ""
#var leader ""</value>
  </trigger>
  <trigger priority="9090" copy="yes">
    <pattern>^&leader's group:</pattern>
  </trigger>
</cmud>