Re: [CODE] [QUESTIONS] Mprog_Delay && Swedish alphabet den.se>

From: Mark A. Heilpern (heilpern@mindspring.com)
Date: 02/01/99


At 11:06 AM 1/31/99 +0100, you wrote:
>I have come up with two problems. First, I have tried millions of times to
>add some sort of mprog_delay or something which will slow down the process
>of executing the mprog_command_list. But it just won't work. I've even
>tried to get myself real clear of the mobprog_delay function from ROM 2.4,
>but to no success.
>
>And no, I do not want dg_scripts or anything else than standard mobprogs.

Mobprogs are no more or less standard than dg_scripts, unless I'm missing
something.

Prior to working with scripts, I'd created an "mdelay" command for the purpose
you mention. Its syntax was "mdelay <time-in-seconds> <circlemud command>".
It worked with an event system that, in this case, would cause the mob that
used
the command to command_interpret(<circlemud_command>) after the time
passed. For use with mobprogs which had several commands, you had to use
mdelay for every command after the first mdelay if you wanted command order
to be preserved. This is because the mobprog command interface does not have
the ability to stop executing its command list and resume it later. (DG_Scripts
does, which is another reason it's much better suited for the job.)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST