Re: And a confusing thing I want to do with Inform


Wed, 21 Jun 1995 11:19:55 -0400

gdr11@cl.cam.ac.uk (Gareth Rees) writes:
> "Andrew C. Plotkin" <erkyrath+@CMU.EDU> wrote:
> > [Waiting multiple turns]
>
> I don't know if this is intentional, but there's a bug in your
> `WaitTurns' function: it keeps going if the player dies (or even if the
> player answers "no" to the "Continue waiting?" question).

Sorry -- that's a typo introduced in the process of recreating code
from memory. Sigh.

> Andrew Clover wrote an additional library module that will do what you
> want; you can get it from the Inform page, or directly from
> <http://www.cl.cam.ac.uk/users/gdr11/inform/timewait.h>.

I've gotten it -- thanks -- but it's basically the same as my code,
without the "meta". It doesn't seem to address the problem. That is,
there's no way to prevent this sort of sequence:

> wait 10
Bob threatens to kill you unless you give him a fish within the next
ONE move! [tw_waiting is given "on" here to abort the wait]
Waiting stopped.
Bob kills you. [because Time() is called one more time]

I guess I'll go screw around with the libraries some more. Sigh.

--Z

"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."