Newsgroups: rec.arts.int-fiction
Path: gmd.de!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!colyer
From: colyer@nickel.ucs.indiana.edu (colyer)
Subject: ZIP and an Inform question...
Message-ID: <Cwr1vv.HrD@usenet.ucs.indiana.edu>
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: nickel.ucs.indiana.edu
Organization: Indiana University
X-Newsreader: TIN [version 1.1 PL8]
Date: Mon, 26 Sep 1994 18:26:18 GMT
Lines: 46

Hello all,

According to the Z-Machine specs in the back of "manual.txt" ZIP has a
current version number of 6B.  My Zip intrepreter and the souces I've
found are for version 4B....  Basically I'd like to find the 6B sources
and see if it might be possible to do a decent port of the Zip program.
Font support, mouse support, etc.


Now my Inform programming question...


I want to have the status of two or three items affect the 'description'
property of a room...  Easy enough to code, but....

..
description "You are south of the cabin.  A large electric generator
sits here. ";
    if (slot has general) "A can sits inside the slot marked ~GAS
ONLY~";
    else "A slot on the top reads ~GAS ONLY.~ ";
    if (generator has on) "The generator growls quietly producting
electricity for the cabin.";
    else "The generator is not currently running.";

All I ever get regardless of the status of the generators 'on' flag is
the initial bit of text and the slot's 'general' flag text.

Any helps for this?  Or is this just a limitation of Inform.  Also I've
tried doing the same code with Print "x" instead of just "x" and get the
same result.


Thanks all...


Jim


--
 #include <std_disclaimer.h>                                             "33"
    James E. Colyer    INTERNET:colyer@nickel.ucs.indiana.edu    Lovecraft   
 \\        "Surfin' the InterNet in style..."      Amiga 1000/1200        // 
  \X/             |/-\| / - \ |  /  -  \  |   /   -   \                 \X/  


