This topic has 4 replies, 3 voices, and was last updated 5 years, 11 months ago by Diiroehn.
Viewing 5 posts - 1 through 5 (of 5 total)
    • Kilroymcduff Participant
      December 2, 2017 at 11:49 pm #30559

      <?xml version=”1.0″ encoding=”iso-8859-1″?>
      <!DOCTYPE muclient>
      <!– Saved on Saturday, February 25, 2017, 12:07 PM –>
      <!– MuClient version 4.94 –>

      <!– Plugin “LotJ_FullHeal” generated by Plugin Wizard –>

      <muclient>
      <plugin
      name=”LotJ_FullHeal”
      author=”Khamael”
      id=”4066bf955e247fbfc2dd8af7″
      language=”Lua”
      purpose=”Assists with the First Aid skill to heal your character to full health”
      save_state=”y”
      date_written=”2017-02-25 12:06:01″
      requires=”4.94″
      version=”1.0″
      >

      </plugin>

      <!– Get our standard constants –>

      <include name=”constants.lua”/>

      <!– Triggers –>

      <triggers>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”Your medpac seems to be empty.”
      sequence=”100″
      >
      <send>throw @medpac
      hold @medpac
      first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has a few bruises.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has many nasty wounds.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      lines_to_match=”2″
      keep_evaluating=”y”
      match=”^Covering armor masks you as: (.*)$”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“restring”,”%1″)
      SetVariable(“healname”,”%1″)
      Note(“Restring set to “..”%1″)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has several wounds.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      lines_to_match=”2″
      keep_evaluating=”y”
      match=”^Current comlink\: (.*)\nYou have learned (.*)\Z”
      multi_line=”y”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“healname”,”@charname”)
      Note(“You are not wearing concealing armor.”)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has some cuts.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      match=”^Given name\: (\S*)(.*)$”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“charname”,”%1″)
      Note(“Character name set to “..”%1″)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is DYING.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is almost dead.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is bleeding freely.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is in perfect health.”
      name=”FullHealEnd”
      send_to=”12″
      sequence=”100″
      >
      <send>EnableTriggerGroup (“FullHeal”, false)
      Send (“rem @medpac”)
      Send (“draw”)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is covered in blood.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is leaking guts.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is slightly scratched.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      lines_to_match=”2″
      match=”^Current comlink\: (.*)\nMarried to\: (.*)\Z”
      multi_line=”y”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“healname”,”@charname”)
      Note(“You are not wearing concealing armor.”)</send>
      </trigger>
      </triggers>

      <!– Aliases –>

      <aliases>
      <alias
      name=”UseMed”
      match=”usemed *”
      enabled=”y”
      expand_variables=”y”
      group=”FullHeal”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“medpac”,tostring(“%1”))
      Note(“Now using “..”%1″..” for first aid.”)</send>
      </alias>
      <alias
      name=”FullHeal”
      match=”fullheal”
      enabled=”y”
      expand_variables=”y”
      group=”Combat”
      send_to=”12″
      sequence=”100″
      >
      <send>EnableTriggerGroup(“FullHeal”,1)
      Send(“hols”)
      Send(“hold “..”@medpac”)
      Send(“first”)</send>
      </alias>
      </aliases>

      <!– Variables –>

      <variables>
      <variable name=”restring”>A being in desert shrouds</variable>
      <variable name=”healname”>Kaya</variable>
      <variable name=”medpac”>medpac</variable>
      <variable name=”charname”>Kaya</variable>
      </variables>

      </muclient>

    • Kilroymcduff Participant
      December 2, 2017 at 11:52 pm #30561

      Khamael wrote this, just so you all know, so if he pops up PLEASE let him know you appreciate it.

      This is nifty and can span multiple characters. When you use “score” it’ll capture your name, your concealed armor desc, and even if you get married it’ll catch that too (there were issues with that when this was first made.)

      Usemed will select a medkit for you to use. So for example, if I have a bunch of First-Aid Kits, I’d type “usemed first” and it’ll set that as the medkit.

      It holsters, and draws when healing is done. Also throws down empty pack automatically. The whole nine yards. Most of you probably already have triggers or aliases for this, but it’s nice to have one script you can use for all characters/medkits.

    • Diiroehn Participant
      May 3, 2018 at 8:28 pm #30888

      There is also a nifty trigger option in MUSHClient that I found good to use, though it doesn’t do anything when your medpac is empty. In new trigger, I clickmark the box that says Regular Expression, and put this in the line to match:

      ^Jane (is DYING|is almost dead|is leaking guts|is covered in blood|is bleeding freely|has many nasty wounds|has several wounds|has some cuts|has a few bruises|is slightly scratched)\.$

      and then have it output

      first

      Bam. That’s it. Of course, ‘Jane’ would be your character’s name or restring.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.