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
Ash June2
Newbie


Joined: 11 May 2002
Posts: 5

PostPosted: Sat May 11, 2002 2:36 pm   

Operations on triggers?
 
I'd like to capt the talkings AND the emotes and transfer them to the 'tell' window.

I'd like to make something like :
if the line contains the string 'say' OR the string 'shout' OR the string 'Arthur' OR then string 'Lancelot' OR ..... then CAP and GAG.
I want to do this because creating multiples triggers results in multiplying the lines which contains several 'trigger targets'.
Hope this is possible to do, thanks a lot :)
Ash
Reply with quote
Gandorf
Novice


Joined: 28 Oct 2000
Posts: 38
Location: Sweden

PostPosted: Sat May 11, 2002 3:00 pm   
 
I hope I get this right
First you store what you want to capture in a variable.
#var capture {say|shout|Arthur|Lancelot}

then if you want to match any string against that you just make a trigger like this
#tr {{@capture}} {#capture tell;#gag}


Gandorf
Reply with quote
Ash June2
Newbie


Joined: 11 May 2002
Posts: 5

PostPosted: Sat May 11, 2002 3:18 pm   
 
WOW!!!!!!!!
for the moment it works exactly as I hoped!
I wouldn't have find that by myself.
Thanks a lot :)

Ash
*zMUD RuLeZ*
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