|
Malaphus Novice
Joined: 11 Aug 2003 Posts: 34 Location: USA
|
Posted: 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. |
|
|
|
sp000n Novice
Joined: 04 Jul 2001 Posts: 32
|
Posted: 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. |
|
|
|
Megane Wanderer
Joined: 09 Nov 2000 Posts: 66 Location: USA
|
Posted: 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} |
|
|
|
sp000n Novice
Joined: 04 Jul 2001 Posts: 32
|
Posted: Thu Aug 21, 2003 10:51 pm |
M's is better.
|
|
|
|
|
|