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


Joined: 11 Aug 2003
Posts: 34
Location: USA

PostPosted: Thu Aug 21, 2003 5:12 am   

Disabling a trigger for 5 seconds when it runs
 
I have a trigger that does things based on waht other players in the MUD do. I would like to somehow turn this trigger off for a given number of seconds (say, 5 for instance) whenever it runs - to prevent people from spamming it.

Can anybody give me an example of how I would do this?

Thanks in advance.
Reply with quote
sp000n
Novice


Joined: 04 Jul 2001
Posts: 32

PostPosted: Thu Aug 21, 2003 8:33 am   
 
#alias DoStuff {stuff-you-want;#alarm +5 {#trigger "Name" {trigger text} {DoStuff;#untrigger Name}}

Try that one. Run the alias once after creating it to set up the first instance of the trigger.
Reply with quote
Megane
Wanderer


Joined: 09 Nov 2000
Posts: 66
Location: USA

PostPosted: Thu Aug 21, 2003 9:32 pm   
 
give your trigger a unique id, or stick it in a class folder.

stick onto the end of your trigger these:
#T- uniqueid
#ALA +5 {#T+ uniqueid}
Reply with quote
sp000n
Novice


Joined: 04 Jul 2001
Posts: 32

PostPosted: Thu Aug 21, 2003 10:51 pm   
 
M's is better.
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