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

Posted by Jordan on Thu 19 Oct 2006 10:49 PM — 9 posts, 36,932 views.

#0
*Legendary <wildcard>* is webbed

output grouptell %1 has been webbed.


Any clues?
Russia #1

<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.
#2
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?
Amended on Fri 20 Oct 2006 04:49 AM by Jordan
Australia Forum Administrator #3
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4777
#4
ok thx for that i got it on there but its not working =/. Any ideas?
Russia #5
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.
#6
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]
Russia #7
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>

#8
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