Timed Mob Scripts: Comments requested

From: Gary Barnett (gbarnett@polarnet.com)
Date: 01/20/97


I have recently implemented an interpreted mob scripting
system. (not mobprogs.. I rolled this one myself)

As one of the final details I am considering two alternatives
for the implementation of time based scripts.

1) Run every X seconds. (task scheduler)
Benefit: Events can be counted on to happen at a certain interval.

2) Run when the mud is idle. (Pointer to last prog run, just
cycle through them in order, whenever we enter the idle loop.)
Benefit: Doesn't contribute to the amount of 'lag.'

Which method would you use, if given the choice? Both from the
point of view of the code, as well as from the builder's view.

If I implement option 2, will there be enough time to run the
programs.. .10th of a second doesn't seem like a heck of a lot
of time to run an interpreted script, and some of the longer
ones will surely never run in that time length. 

Thanks for your time.

--Mallory.

-- http://www.polarnet.com/Users/gbarnett/ -- telnet://204.119.24.14:4000
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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