Re: Spec_proc Problem

From: Daniel Koepke (dkoepke@california.com)
Date: 12/02/96


On Mon, 2 Dec 1996, Chuck Carson wrote:

> I have a spec proc that simply loads and object at a certain time and
> unloads at a certain time aloong with a few messages sent to the room.
> 
> My problem is that when it is the corrent time for something to happen,
> it will only work if a player types a command in that room.
> 
> I have played around with the if(cmd) if(!cmd) checks I saw in other
> spec_procs but I cannot get this to work in any form.. I will post the
> code if necessary.

Spec procs are not called for no reason.  They are called when the
player types a command and every fight round, too.  Spec procs aren't
called periodicially, thus, a time check inside the spec proc does
no good as it's not being called at that time.  The only way you can
accomplish this is to have a check for the time outside of the spec-proc
and then check if the mobile has that spec-proc and if so, call it.  A
bit more complicated than it should be, IMHo.  Multiple spec-proc
types would be cool to have (eg., spec-procs that were called for
different reasons :)).  Might not even be too hard to implement, either.


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| 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