[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  I would like to learn how to make a trigger like this work
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

I would like to learn how to make a trigger like this work

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


Posted by Jordan   (14 posts)  [Biography] bio
Date Thu 19 Oct 2006 10:49 PM (UTC)
Message
*Legendary <wildcard>* is webbed

output grouptell %1 has been webbed.


Any clues?
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #1 on Thu 19 Oct 2006 11:45 PM (UTC)
Message

<triggers>
  <trigger
   enabled="y"
   match="^\*Legendary (\w+)\* is webbed $"
   regexp="y"
   sequence="100"
  >
  <send>grouptell %1 is webbed</send>
  </trigger>
</triggers>


Copy that and paste in the Triggers dialog.
[Go to top] top

Posted by Jordan   (14 posts)  [Biography] bio
Date Reply #2 on Fri 20 Oct 2006 04:41 AM (UTC)

Amended on Fri 20 Oct 2006 04:49 AM (UTC) by Jordan

Message
For my own sake let me clerify it so i can understand what your saying better.

What should trip the trig is *Legendary (wildcard)* has been covered in sticky webs!

and then output is gtell *Legendary (wildcard)* is webbed!



Sorry to sound like an idiot but the only triggers menu diaolog box thingy i see has what trips the trigger and what is sent. Where do i paste this?
[Go to top] top

Posted by Nick Gammon   Australia  (21,405 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Fri 20 Oct 2006 06:03 AM (UTC)
Message
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4777

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Jordan   (14 posts)  [Biography] bio
Date Reply #4 on Fri 20 Oct 2006 11:19 AM (UTC)
Message
ok thx for that i got it on there but its not working =/. Any ideas?
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #5 on Fri 20 Oct 2006 12:39 PM (UTC)
Message
Probably because the match expression is wrong. Post a short log snippet that includes the line you want to trigger, exactly as it appears in the output window, without editting it in any way.
[Go to top] top

Posted by Jordan   (14 posts)  [Biography] bio
Date Reply #6 on Fri 20 Oct 2006 09:11 PM (UTC)
Message
c web sil (command)

4155/4155hp 3360/3390m 800/800mv|E|1996 *Legendary Silence* is COVERED IN STICKY WEBS!!

4155/4155hp 3310/3390m 800/800mv|E|1996 Enemy: 100% [*Legendary Silence*: Perfect] [You: Perfect]
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #7 on Sat 21 Oct 2006 12:58 AM (UTC)
Message
See if this works.


<triggers>
  <trigger
   enabled="y"
   match="\*Legendary (\w+)\* is COVERED IN STICKY WEBS\!\!$"
   regexp="y"
   sequence="100"
  >
  <send>grouptell %1 is webbed</send>
  </trigger>
</triggers>

[Go to top] top

Posted by Jordan   (14 posts)  [Biography] bio
Date Reply #8 on Sat 21 Oct 2006 01:44 PM (UTC)

Amended on Sat 21 Oct 2006 01:46 PM (UTC) by Jordan

Message
Hurrah! Thanks a bunch =D. Now is there anyway to change Legendary into another variable? Nvm. I found out how woooo!! Im starting to catch on slowly
[Go to top] 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.


6,191 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]