--- J <[EMAIL PROTECTED]> wrote:
> Anyone know how to work a decent delay in descriptor returning?
> 
> WAIT_STATE just pauses command parsing, anyone know how to pause,
> temporarily, the descriptor from returning something?  Function specific of
> course... For example...
> 
> Send_to_char("blah")
> <-----five seconds---->
> send_to_char(blahhhh...")
> 
> I need at least a hint on how to add a five second delay like such.
> 
> I hope you get what I mean.

Yes. You want an event queue. They are fairly simple to implement, and allow
for this sort of delayed messanging as well as delayed actions, etc. (as an
aside, this should really be in a FAQ somewhere, since everyone is always
asking for this sort of functionality) In anycase, you can look at
http://www.daimi.au.dk/~jobo/pages/event_queue.html for an example and
description of the way one person implemented it in their mud.. I don't see any
readily available sources to show you other examples.

~Kender

=====
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/L/C/O d-(+) s++: a-- C+++$>++++ UBLS++++$ 
P+++(--)$ L+++>++++ E--- W+>++$ N !o K? w(--) !O 
M- !V PS+ PE(++) Y+ PGP->+ t+ 5 X+() R(+) tv+@ 
b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
------END GEEK CODE BLOCK------

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

Reply via email to