problem with trigger

Posted by Rafalinski on Mon 02 Feb 2015 08:06 PM — 8 posts, 26,011 views.

#0
Hi. I need a help with a basic trigger. My basic line in mud is:

HP: 6244/7338 CP: 2553/2553 TST: 944/944 CNC: 892/895 [MODE]: Mentat [ENEMY]: 6%

I want mush client to make few skills on the [MODE]: Mentat. What to type in trigger to make it work? Usual [MODE]: Mentat doesnt work... I tried [MODE]: Mentat * etc...

Also "* died." (for example - "soldier died.") doesnt work too...
Amended on Mon 02 Feb 2015 08:24 PM by Rafalinski
Australia Forum Administrator #1
Please post the trigger.

Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
#2
<triggers>
<trigger
enabled="y"
match="&quot;[MODE]: Mentat&quot;"
sequence="100"
>
<send>prana
bash
pommel
bindu
litany
tide
tackle
bind
</send>
</trigger>
</triggers>






and 2nd one:


<triggers>
<trigger
enabled="y"
match="* died. "
sequence="100"
>
<send>victory</send>
</trigger>
</triggers>


Capturing so many skills on the mentat thing isn't best idea. If anyone can help with good trigger to capture skills on the basic line and not spam so much, plz help:)
Amended on Mon 02 Feb 2015 09:42 PM by Rafalinski
Australia Forum Administrator #3

 match="* died. "


You have a trailing space there. Is there really a space after the period in the text from the MUD?


 match="&quot;[MODE]: Mentat&quot;"


You are matching on something in quotes, but you don't have quotes in your example MUD output.
#4
Thanks for tips. How to make some lines invisible,
something like #gag in zmud? Anything similiar in mush client?
Australia Forum Administrator #5
Make a trigger that matches the line and check "omit from output".
#6
Here i have a trigger :


<triggers>
<trigger
enabled="y"
match="HP:*%"
sequence="100"
>
<send>prana
bindu
heal</send>
</trigger>
</triggers>

I dont like the spam which show 3 words:

prana
bindu
heal

every round. When i choose omit from output at this trigger it makes also invisible main line (example of it: HP: 12139/8093 CP: 2861/2861 TST: 928/937 CNC: 897/897 [MODE]: Warrior [ENEMY]: 109%). How to make invisible just those 3 words and still see the main line)?


Ooops sorry for double post:/
Amended on Fri 06 Feb 2015 06:54 PM by Rafalinski
Australia Forum Administrator #7
Make the trigger "send to script" and use SendNoEcho, like this:


<triggers>
  <trigger
   enabled="y"
   match="HP:*%"
   send_to="12"
   sequence="100"
  >
  <send>
SendNoEcho ("prana")
SendNoEcho ("bindu")
SendNoEcho ("heal")
</send>
  </trigger>
</triggers>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.