I want to quick thank everyone who posted when I asked about this the
first time (a couple weeks back).  Unfortunately, I'm still having some
problems.

Here is a quick rehash of what I would like to do.  I would like to
implement delays in progs such that the program would continue where it
left off after a certain, builder defined, delay (just a quick fyi, I'm
using mobprogs by Newt and obj and room prog additions by Ralgha).  For
example:

say Hello.
delay 2
say Nice day isn't it.

When the prog executes, the mob would say "Hello.", there would be a 2
second delay, and then it would say "Nice day isn't it."

Now, conceptually this seems pretty simple from the answers you all gave
me previously (though this is obviously a little simplified).  Copy the
prog code somewhere (I am thinking that doing this right in the
char_data object may be a good idea).  To do this, I was thinking that a
new struct might be in order, which would hold the prog code as well as
a pointer to the line directly after the "delay" line (and possibly some
other program_flow originating variables)(this saves me from having to
modify all the previous code in order to reach that execution line, I'm
not the best with C style char array manipulation so I stay away from
that as much as possible).  Once the delay is over, load up the new code
struct and let it rip.

My main concern is that I may have to have a special program_flow type
method to finish things off, though in the best case I will be able to
make some minor modifications to program_flow.  The unfortunate point is
that I am having a difficult time really understanding program_flow, and
am therefore having a problem coming up with a solid design.

So, what is it that I'm really asking?  First, does the brief
explanation above seem to make sense?  Just one more clarification, I
was planning removing/modifying the current 'delay' prog to handle the
timing issues, and rather than triggering a different prog altogether,
it would pick up where it left off.

I guess the next would be if anyone would be willing to help more of a
one on one basis if I continue to have problems.  I don't want to spam
the list with particulars that most are going to care nothing about.

Thanks for your time.

Boh


Reply via email to