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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
dimitris
Newbie


Joined: 22 Nov 2004
Posts: 3

PostPosted: Mon Nov 22, 2004 7:31 pm   

Trigger question
 
I want to trigger when i recieve test or test. from the mud without creating 2 different triggers one for each case, tried test{.|%s} but it does not work.

Thanks for any help.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Nov 23, 2004 12:12 am   
 
#TR {test} {#echo do stuff here of course}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
dimitris
Newbie


Joined: 22 Nov 2004
Posts: 3

PostPosted: Tue Nov 23, 2004 12:01 pm   
 
That will trigger when i recieve test from mud not when i recieve test. i want to trigger in both cases.
Reply with quote
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Tue Nov 23, 2004 12:27 pm   
 
You can't use wildcards in the above pattern {val1|val2|valN}

Is that the only word in the line or is there more text after it?

It depends on what you want to do with what you trigger on.

You could do

#TR ({@is_this_test})$ {#echo some stuff here}

@is_this_test is a stringlist with the words {test|test.}
Reply with quote
dimitris
Newbie


Joined: 22 Nov 2004
Posts: 3

PostPosted: Tue Nov 23, 2004 12:52 pm   
 
Thanks will try that
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Nov 23, 2004 12:58 pm   
 
#TR {test} {#echo do stuff here of course}

Will work on

a TEST
TEST
TEST.
a long TEST
a longer TEST.
aTEST
TESTb
someTESTing
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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