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
TerrellKl
Novice


Joined: 30 Aug 2005
Posts: 49

PostPosted: Sat Sep 10, 2005 9:22 pm   

Trigger be spamming
 
I got a trigger.. its a very complicated trigger so ill just show u a more simplified trigger

#trigger {(%w) says, 'Pie'} {Say I like pie}

Someone says that 10 times in 3 seconds..

Instead of saying I like pie 10 times.. i want it to {say stfu} and not say I like pie 10 times. Anyway to do this.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Sep 10, 2005 9:41 pm   
 
Uh....

Code:
#TRIGGER {(%w) says, 'Pie'} {say stfu}


would work...

But then you'd say 'stfu' 10 times...

Charneus
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Sat Sep 10, 2005 10:44 pm   
 
Could store the says in a variable, then setup a trigger to act on it when the variable hits a certain limit, like:

#TRIGGER {(%w) says, 'Pie'} {#ADD ILIKEPIE 1;#IF (@ILIKEPIE = 10) {say stfu} {say I like pie}}
_________________

No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Sep 10, 2005 11:15 pm   
 
Don't forget to have a reset for that, or it would never happen again.

Code:
#TRIGGER {(%w) says, 'Pie'} {#ADD ILIKEPIE 1;#IF (@ILIKEPIE = 10) {say stfu;ILIKEPIE = 0} {say I like pie}}


Charneus
Reply with quote
TerrellKl
Novice


Joined: 30 Aug 2005
Posts: 49

PostPosted: Sat Sep 10, 2005 11:17 pm   
 
ewww.. good idea thx
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