Can I get working trigger out of ********** ?

Posted by Potato Hot on Fri 08 Feb 2002 11:29 PM — 3 posts, 15,253 views.

#0
This is the problem,
after each battle round i get new row of
*****************

the *'s separate every battle round..
Now, I wanted to create a trigger from these *** but it wont work :(

My fellow mudders who used zmud client told me that they got ~*~*~* as the trigger..
is there similar way to make the trig work?
While partying in big partys at Batmud it would be handy to give reports of current hp and sp after each round...

So can anyone change these ********* as working trigger?
Please also send me a email if you got a solution.
It will be greatly appreciated!
Thanks!
Amended on Sat 09 Feb 2002 02:10 AM by Potato Hot
Australia Forum Administrator #1
Yes you can do that. There is a problem with a simple trigger matching on asterisks, as they are a wildcard, however make it a regular expression and you will be OK.

In fact it can be nice and simple, as I gather you want to match on some number of asterisks? Thus, just match on this:


Trigger: ^\*+$
Regular expression: checked


If there are extra characters or spaces you might need to modify it a bit. What this means is ...

  • ^ - match start of line
  • \* - match an asterisk - the backslash "escapes" it to be an asterisk and not a wildcard or something
  • + - match one or more asterisks (the previous character)
  • $ - match end of line
#2
Thank you Nick!
That worked alright!
Thank you also for expalining the meaning of the the trigger characters!(I where abit lost with em too)

Back to happy mudding!

Im also recomending my favorit mud Batmud to everyone intrested.

bat.cs.hut.fi:2023

Thank you again! I don't think I would have figured this out one by myself :)