|
HawkeyeX Beginner
Joined: 02 Mar 2005 Posts: 20
|
Posted: Sat Jan 03, 2009 3:31 am
A very stupid newbie #action/#trigger question |
I'm trying to set up a trigger to bot...
Someone tells you, 'summon'
before, in Zmud, I was able to write #action {%i tells you, 'summon'}{st;cast 'summon' %i;sle}
now I'm not able to do this...
Help? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Jan 03, 2009 4:55 am |
Because using %i like that isn't the proper way to use pattern-matching wildcards and you're missing a space. I suggest reading that helpfile for an overview, but what you want is this:
#trig {(%w) tells you 'summon'} {st;cast 'summon' %1;sle}
You'll probably want to add ^ at the start of the pattern, though - it'll stop people from being able to make you summon other people because your current output will trigger on the line Fang tells you, 'Vijilante tells you, 'summon''. So the final result will be
#trig {^(%w) tells you 'summon'} {st;cast 'summon' %1;sle} |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Jan 03, 2009 8:25 pm |
*cough* I was summoned. *twitch*
#trig {^(%w) tells you 'summon'} {st;cast 'summon' %1;sle}
You forgot the parenthesis, Fang. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Jan 04, 2009 4:06 am |
I did, fixed.
|
|
|
|
|
|