CMud Kill Trigger

From AvatarWiki
Revision as of 18:59, 2 February 2013 by Monty (talk | contribs)
Jump to navigation Jump to search

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>