|
aixagent Newbie
Joined: 03 Aug 2002 Posts: 4
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Aug 03, 2002 10:50 pm |
#VAR Smiles 0
#TR {^You smile.$} {#ADD Smiles 1;#IF (@Smiles=3) {grin}} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|