Re: Inform - Problem with DarkToDark()
Wed, 8 Nov 1995 22:48:03 -0500
ceforma@rs6000.cmp.ilstu.edu (Christopher E. Forman) writes:
> The title here should be self-explanatory. Basically, I can't get Inform
> to end the game immediately after the call to my DarkToDark routine (which
> is supposed to kill the player). It does so, but not until after printing
> the description of the next dark room the player enters. I find the
> appearance incredibly tacky-looking, and was wondering if there was any
> way around it.
There's always a way around it :-)
In this case I'd probably Replace GoSub. (That's the routine that
calls DarkToDark.) Just copy the code from the library, and insert a
line after the call: if (deadflag ~= 0) rtrue;
A cheesier hack would be to set keep_silent to 1. That's safe enough
as long as the game is ending, although if you have kind of
reincarnation you'd have to reset it to zero.
--Z
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."