Trigger change....

Posted by Tatewaki2365 on Wed 30 Jun 2004 05:14 AM — 4 posts, 17,557 views.

#0
With this trigger:
([A-Za-z]+) (is( sitting| resting|) here|rides in|walks in)\.$

It's set to attack anyone who is sitting, resting, riding in, walking in, or just standing. How would I modify it to just attack a certain person? What would I have to replace?
USA #1
([A-Za-z]+) (is( sitting| resting|) here|rides in|walks in)\.$
You need to change ([A-Za-z]+) to whomever.

Bob (is( sitting| resting|) here|rides in|walks in)\.$

If you dont have any leading spaces, you might also want to add a ^ (caret) at the beginning. This will make it so you dont match on:

Joe says: Bob is sitting here.
#2
A million thanks.
#3
I have this on my MUD

^(?:\*\>)?(.*?) the (.*?) has just arrived$

The (?:\*\>)? avoids the *> prompt i have at the
start of a line,, so this may be different from
yours. I have changed the initial "* the * has just
arrived" to a regular expression and sent this to a
variable called target.

So everytime someone 'has just arrived'
ie John or Bob it will save John or Bob to
variable named target.

Make sure Expand Variable box is ticked.

In send box put %1