Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!news.ruhr-uni-bochum.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!news.gtn.com!osn.de!noris.net!blackbush.xlink.net!tank.news.pipex.net!pipex!oleane!jussieu.fr!univ-lyon1.fr!howland.erols.net!newsxfer2.itd.umich.edu!uunet!in3.uu.net!world!olorin
From: olorin@world.std.com (Mark J Musante)
Subject: Re: Another TADS Question
Message-ID: <Dwr584.Mo3@world.std.com>
Organization: The World @ Software Tool & Die
X-Newsreader: TIN [version 1.2 PL2]
References: <4vqn7h$dkh@newsbf02.news.aol.com>
Date: Mon, 26 Aug 1996 15:48:04 GMT
Lines: 30

JlB1925 (jlb1925@aol.com) wrote:
> Ok, I've found my ideal working environment and have made progress on a
> game.  I'm wondering...In one segment of the game, the player is on a
> ledge of a 15-story building.  Obviously someone is going to jump. 
> Unfortunately, in ADV.T, jumping has a default response.  How can I define
> the room so that trying to jump in it will jump off the cliff?  Should I
> use roomCheck or roomAction?  Thanks.

You might consider making a fixeditem "roof".  TADS already defines "jump off"
and you can just make:

roof: fixdeditem
	noun = 'roof'
	sdesc = "roof"
	verDoJump( actor ) = {}
	doJump( actor ) = {
		"%You% jump%s% off of the roof.  ker-splat!";
		if ( actor = Me ) {
			die();
		} else {
			actor.moveInto( nil );
		}
	}
;

This will allow your player to type "jump off roof".  You also might consider
modifying the jump verb to include 'jump offof' to allow "jump off of roof"
too.

 - Mark
