Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!newsserver.jvnc.net!newsserver2.jvnc.net!howland.reston.ans.net!gatech!swrinde!sgigate.sgi.com!sgiblab!news.cs.indiana.edu!shulick@guava.ucs.indiana.edu
From: "Sam Hulick" <shulick@guava.ucs.indiana.edu>
Subject: Re: INFORM: Printing time and "Include"
Message-ID: <1995Aug29.003939.24089@news.cs.indiana.edu>
Organization: Vallen Software
References: <1995Aug27.150248.89979@rs6000.cmp.ilstu.edu>
Date: Tue, 29 Aug 1995 00:39:33 -0500
Lines: 47

ceforma@rs6000.cmp.ilstu.edu (Christopher E. Forman) writes:
>Another set of questions:
>
>1) Is there a standard function to print the time (in the game's text, not
>   the status line)?

Nope. there is now :)....

[ TimeSub i;
   print "The current time is ";
   i = sline2 % 12;
   if (i == 0) i = 12;
   print i, ":";
   if (sline3 < 10) print "0";
   print sline3;
   if ((sline2 / 12) > 0) print "pm.^"; else print "am.^";
]; ! Umm, the slineX stuff may vary... this is just what I use in my game.
  ! I have like four sline values,because my status line has score AND
  ! time in it.

Verb meta "time"
 *    -> Time;

>2) When you "Include" files, do they have to have a .H extension, or can
>   any file be specified?  How many files can be included?

If you leave off the '.h' it includes '.inf' files, I believe.  And if
you wish to include files from the current directory, NOT the library
dir indicated by +<library> on the Inform command line, do this instead:

Include ">filename";

For instance, my game is so huge now, I had to break it up into many
pieces.  So my main.inf does this:

Include ">downtown";
Include ">hospital";
Include "....etc.

As far as I know, you can include as many files as your disk will
hold. :)

-- 
--- Sam Hulick ------------- shulick@indiana.edu ---------------------
Systems Consultant        | Homepage:
Indiana College Placement |    http://copper.ucs.indiana.edu/~shulick/
  and Assessment Center   | PGP public key available on request
