Message-ID: <3BB0D1EB.3FBC57D@hp.com>
Date: Tue, 25 Sep 2001 12:50:19 -0600
From: Bill Blohm <bill_blohm@hp.com>
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: [TADS] die() question
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: hpbs7220.boi.hp.com
X-Trace: hpb10302.boi.hp.com 1001443878 hpbs7220.boi.hp.com (25 Sep 2001 12:51:18 -0700)
Lines: 32
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!feed2.onemain.com!feed1.onemain.com!cyclone2.usenetserver.com!usenetserver.com!telocity-west!TELOCITY!news-west.eli.net!sdd.hp.com!fc.hp.com!news.cup.hp.com!hpb10302.boi.hp.com
Xref: news.duke.edu rec.arts.int-fiction:92930

First, a little background. I'm returning to TADS after a hiatus of 5 or
more years. In addition, I loaned my TADS manual to a friend, and he put
it in a safe place. I'm sure you know what THAT means. I've done some
searching and have obtained the online TADS manual, updated my TADS, and
mapped out the first layer of a game. In a game I wrote years ago, I
managed to make the die() function work for what I wanted. However, I
don't seem to have a copy of that game any more, and nothing I've tried
yet has worked. So, I'm turning to the collective wisdom of this
newsgroup for help.

Depending on the setting of a variable, which will be set on entering
certain rooms, I want the die() function to provide one of two or three
possible descriptions of the death of the character. No matter what I
do, I seem to fail. Currently, I have a poor work-around which involves
leaving the die() text blank and including the death scenes in the long
desc for the room. Which means repeated waste of space, unnecessary text
in the file, etc..

What I want is that if the player enters room a and has no rope, he
reads the text for death1. If he enters another room, he gets the text
for death2. If he enters a third room, he also gets the text for death1.

Can someone point me to a source code example I can study that shows how
to make this work?

I'm sure I'm missing something so simple that when I'm shown it, I'm
going to groan and bang my head on the desk.

Best regards,

Bill B.

