Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ problem with trigger

problem with trigger

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Rafalinski   (5 posts)  Bio
Date Mon 02 Feb 2015 08:06 PM (UTC)

Amended on Mon 02 Feb 2015 08:24 PM (UTC) by Rafalinski

Message
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...
Top

Posted by Nick Gammon   Australia  (23,171 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 02 Feb 2015 08:24 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Rafalinski   (5 posts)  Bio
Date Reply #2 on Mon 02 Feb 2015 08:32 PM (UTC)

Amended on Mon 02 Feb 2015 09:42 PM (UTC) by Rafalinski

Message
<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:)
Top

Posted by Nick Gammon   Australia  (23,171 posts)  Bio   Forum Administrator
Date Reply #3 on Tue 03 Feb 2015 05:34 AM (UTC)
Message

 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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Rafalinski   (5 posts)  Bio
Date Reply #4 on Tue 03 Feb 2015 07:38 PM (UTC)
Message
Thanks for tips. How to make some lines invisible,
something like #gag in zmud? Anything similiar in mush client?
Top

Posted by Nick Gammon   Australia  (23,171 posts)  Bio   Forum Administrator
Date Reply #5 on Tue 03 Feb 2015 07:50 PM (UTC)
Message
Make a trigger that matches the line and check "omit from output".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Rafalinski   (5 posts)  Bio
Date Reply #6 on Fri 06 Feb 2015 06:51 PM (UTC)

Amended on Fri 06 Feb 2015 06:54 PM (UTC) by Rafalinski

Message
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:/
Top

Posted by Nick Gammon   Australia  (23,171 posts)  Bio   Forum Administrator
Date Reply #7 on Sat 07 Feb 2015 08:50 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


23,990 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.