Re: Tads problem again
30 Jun 1995 19:14:04 GMT
In article <1995Jun29.121552.54946@cc.usu.edu>,
Aaron Hardy <aaron@latrobe.edu.au> wrote:
>I fixed my last problem with the lasergun, but now I have another one.
>The compiler tells me I excluded a equal sign, in this area of code...
>
>bookcase: fixeditem
>sdesc = "bookcase"
>ldesc = "A monstrous bookcase, leans precariosly against the wall. A
>collection of books, covered in dust, sits on the shelves.
>noun = 'book' 'case' 'bookcase'
>adjective = 'monstrous' 'dusty'
>verDoPush(actor) = {}
>doPush(actor) =
> {
> if (bookcase.ispushed)
> "The bookcase swings outward, covering the passage.";
> bookcase.ispushed := nil;
Well, you're going to run into problems here, I believe, unless you put {}'s
around this if statement.
> else
> {
> "The bookcase swings inward, revealing a secret passage
> to the east.";
> bookcase.ispushed := true;
> }
> }
>location = cabin2
>;
--
------------------------------------------------+--------------
The Grim Reaper ** scythe@u.washington.edu |
Dan Shiovitz ** shiov@cs.washington.edu | Aude
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Sapere
_Music of the Spheres_ : Coming Nov '95 |
------------------------------------------------+--------------