Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
HawkeyeX
Beginner


Joined: 02 Mar 2005
Posts: 20

PostPosted: 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?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)

Last edited by Fang Xianfu on Sun Jan 04, 2009 4:05 am; edited 1 time in total
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Jan 04, 2009 4:06 am   
 
I did, fixed.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net