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
aixagent
Newbie


Joined: 03 Aug 2002
Posts: 4

PostPosted: Sat Aug 03, 2002 8:34 pm   

Help w/ COUNTING TRIGGERS
 
Hi guys. I haven't MUDDed in a long time and I'm trying to get back into the gist of things. Unfortunately, I no longer remember how to do many of the triggers so I'm here to ask you guys for help:

let's work with this line:

You smile.

I would like the trigger to count how many times i've seen "You smile." and on the 3rd "You smile." the trigger will execute a command.

For example:

You smile.

You smile.

You smile.

TRIGGER->You grin.

obviously these arent the actual lines i'll be using but they are just an example so that i wont confuse anyone. any help would be graciously appreciated. thank you for your time.

aixagent
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Aug 03, 2002 10:50 pm   
 
#VAR Smiles 0
#TR {^You smile.$} {#ADD Smiles 1;#IF (@Smiles=3) {grin}}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 04, 2002 12:11 am   
 
I'm usually more confused by the made up examples than by the actual lines people would be using. Made up examples also make me wonder what you're trying so hard to keep secret.

LightBulb
Senior Member
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