Simple? MUSHclient Question(s)

I am trying to make triggers to react to emotes automatically.

For the trigger I have -> Finger extended, (\w+) pokes you.
I am unsure if that's even the right line, if it is how do I make a reaction for it? Or...can I even do that?
image
The Inner Sea.
I take commissions doe.

Comments

  • TarkentonTarkenton Traitor Bear
    The following should do the trick.  Just copy it, then open your triggers window in Mushclient and use the paste button.  Obviously, feel free to change what is sent when you get that line.  I just wrote that as a quick example.

    <triggers>
      <trigger
       enabled="y"
       match="^Finger extended\, (\w+) pokes you\.$"
       regexp="y"
       sequence="100"
      >
      <send>emote looks at ^%1 and slaps ^%1_him silly.</send>
      </trigger>
    </triggers>

    image
  • edited January 2015
    What if I wanted to return with the eye emote like 

    Finger extended, Tarkenton pokes you.

    and I wanted to send out

    You give Tarkenton the once-over, eyeing him suspiciously.
    image
    The Inner Sea.
    I take commissions doe.
  • QistrelQistrel the hemisemidemifink
    You can see the emote lines by using EMSHOW.

  • I meant, I want to send EYE (whoever) if poked.
    image
    The Inner Sea.
    I take commissions doe.
  • TarkentonTarkenton Traitor Bear
    In the send field, you'd put

    eye %1
    image
  • Thanks!
    image
    The Inner Sea.
    I take commissions doe.
  • Not really asked for, but I can break down Tark's reply, so that it's more clear.

    The RegExp was missing the ^ to start the line, the $ to end it, and you have to escape the punctuation, in this case the comma and period, by using the \. You also have to escape quotation marks so that the expression doesn't interpret them while it's running the rest.

    The ^1% refers to the 1st captured argument, or what was in the (). Be careful using RegExp for reactions though, it can get spammy when people catch on, especially when they catch on and use illusions. Ask Neos what happened when I caught him auto-greeting novices back in the day.
    image
  • TarkentonTarkenton Traitor Bear
    Just the %1 refers to the captured argument.  The ^ is for using the targeted emote system.
    image
Sign In or Register to comment.