|
Brujah Wanderer
Joined: 13 Nov 2002 Posts: 88 Location: USA
|
Posted: Wed Nov 13, 2002 3:22 pm
Delayed triggers? |
It would seem to me that Zmud would have this available. However, for some reason ive never been able to figure it out. Ive been about to do it using the tick timer in the past, but changed to a Linux system some time back and recently chaged back. thus i have forgotten much of what i learned for the Guru's. Is there a way to do it without using the tick timer? Can someone please tell me how?
thanks
<_,-' |
|
|
|
Sir Runsalot Beginner
Joined: 18 May 2002 Posts: 20
|
Posted: Wed Nov 13, 2002 3:25 pm |
As far as I know, you can't delay the triggers themselves on a general basis, but you could use the #wait command.
For example.
#WA 2000;kill bear
would wait 2 seconds then send kill bear to the MUD. |
|
|
|
Brujah Wanderer
Joined: 13 Nov 2002 Posts: 88 Location: USA
|
Posted: Wed Nov 13, 2002 4:14 pm |
I know for a fact that i used to have delayed triggers using the tick timer activation and deactivation. But thanks for trying to be helpful *grin*
<_,-' |
|
|
|
Lalaynya Wanderer
Joined: 23 Aug 2002 Posts: 96
|
Posted: Wed Nov 13, 2002 4:16 pm |
The best way to do this would be to use the trigger to set up an alarm for however long you want it to wait. Check the #ALARM command in the help file.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Nov 13, 2002 4:54 pm |
Usually, you'll want to use a one-time alarm as the action part of the trigger to have a delayed response.
#TR {delay} {#ALA +5 {yell LAG!}}
LightBulb
Senior Member |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Nov 13, 2002 10:59 pm |
quote:
As far as I know, you can't delay the triggers themselves on a general basis, but you could use the #wait command.
For example.
#WA 2000;kill bear
would wait 2 seconds then send kill bear to the MUD.
Definitely do NOT use #WAIT in a trigger. #WAIT will completely lock down the parsers, the screen display, and basically all of ZMud for that duration--after which everything that came through will get thrown up to the screen and processed normally (or perhaps missed if you have a lot of data getting dumped all at once).
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|