Lines: 19
X-Admin: news@aol.com
From: robotboy8@aol.com (Robotboy8)
Newsgroups: rec.arts.int-fiction
Date: 13 Mar 2002 03:09:09 GMT
References: <a0425cbf.0203121254.ee87947@posting.google.com>
Organization: AOL http://www.aol.com
Subject: Re: [Inform] Two (somewhat) interrelated questions
Message-ID: <20020312220909.23237.00001437@mb-fq.aol.com>
Path: news.duke.edu!newsgate.duke.edu!solaris.cc.vt.edu!news.vt.edu!out.nntp.be!propagator-SanJose!in.nntp.be!feed.ac-versailles.fr!freenix!fr.clara.net!heighliner.fr.clara.net!portc01.blue.aol.com!audrey04.news.aol.com!not-for-mail
Xref: news.duke.edu rec.arts.int-fiction:101662

<snip question my limited knowledge can't answer>
>And question 2: How can I make, say, 30 turns pass instantly while the
>player is "passed out"? I'm thinking I'll have to declare some
>variable (x), set x = the_time, and then set the_time = (x + 30), but
>being new to all this I'm not quite sure how to structure it, and I
>can't find a direct example of this in the DM4.

Add a function whose name is, if I remember correctly, "each_turn".  Make a
(preferably global) variable called "turns" (or whatever you want) and
increment it at the end (or beginning, if that's the effect you want) of
each_turn.  When you want the player to pass out, after printing the drop-text
and such, insert the line of code "turns = turns +1".

What I enjoy about this approach is that you can put a case statement in the
each_turn routine that can print something, like a countdown to a launch or
whatever.

--
Sanity is a sure sign of a lazy mind.
