trigger

Posted by Austen on Wed 25 Apr 2001 12:06 AM — 6 posts, 22,604 views.

#0
Alright, reading some of that other stuff, this should be a wiz. One thing, I need to get it so when
A huge hairy beast DISARMS you...
i'll get all
wield all
but i need it so that the Huge hariy beast is anything..
as in pk
*Baron bob* DISARMS you and sends your weapon flying!
*Baron bob* could be one of many people..

for the second part, a gnoll disarms Sirilius!
I need it so i will get all after that, a gnoll and sirilius have to be wildcards, but just don't know how to set that up.

a gnoll disarms Sirilius!
a huge hairy beast DISARMS you and sends your weapon flying!
Australia Forum Administrator #1
In these examples, basically you use an asterisk as a wildcard, like this:


Trigger: * DISARMS you and sends your weapon flying!
Send:

get all
wield all

(2 lines)



As for the second example, it would be something like this:


* disarms *

#2
Alright, tried that, figured thats what it was, but this keeps poping up

little box that says
Failed: nothing to repeat at offset 0
Australia Forum Administrator #3
My examples were not regular expressions. Uncheck the regular expression box.
#4
Alright, worked like a charm, thanks
Second think i can't figure out, a skill for that game is hunt..well here is an example
You see tracks of Ani leading north from here.


<818hp/818 368m/368 262mv/320 (1495) *N* You see tracks of *Duke Bodie* leading north from here.

well anyway, i need it so it will grouptell who and where the tracks are.
if posiable, only people with an * by their name.
Australia Forum Administrator #5
Ah yes, I thought that might come up next! :)

In this case, you will need to use regular expressions, because the one thing you can't match on in regular wildcards is an asterisk.

I would match on:


Trigger: You see tracks of \*(.*)\* leading (.*)
Regular Expression: checked


The "\*" "escapes" an asterisk so it just matches an asterisk, and the "(.*)" means "any number of any character". The parentheses mean "save this as a wildcard", so you could send, for instance:


gtell %1 has gone %2