Newsgroups: rec.arts.int-fiction
Subject: Re: [TADS]
From: argus@see.the.sig (T Raymond)
References: <85f43f07.0110120446.31828514@posting.google.com>
Message-ID: <Xns913892FC45FC1TjR12537@209.25.157.130>
User-Agent: Xnews/4.05.11
NNTP-Posting-Host: 208.51.157.48
Date: 12 Oct 2001 13:03:47 -0500
X-Trace: corp.newsgroups.com 1002909827 208.51.157.48 (12 Oct 2001 13:03:47 -0500)
Lines: 48
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support,  spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com>
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 80,000+ UNCENSORED Newsgroups.
Path: news.duke.edu!newsgate.duke.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!local-out2.newsfeeds.com!corp.newsgroups.com
Xref: news.duke.edu rec.arts.int-fiction:93492

Angela was overheard typing about:

> I'm relatively new to TADS, and to programming in general, and I
> was wondering whether there was a way to change the defaults in a
> certain place without having to specify the change for all the
> verbs, ie.

Welcome to TADS and RAIF. You're in the right place to find the
answers to many questions. Some you propably haven't even found that
you need to ask yet. :)

> nowhere: room
> sdesc = "Nowhere"
> ldesc = "Long description for nowhere"
> ...
> but say I wanted the player to be stuck in there for the moment,
> and all directions they type to result in the message 'You wander
> in the void for a while, but quickly become lost and return to
> nowhere' (or something just as boring, and return nil). How can I
> do this without typing
> north = {the message, return nil etc.}
> south = {the message, return nil etc.}
> ...and so forth?

I'm no expert when it comes to these sort of things, but I believe
where you want to start looking would be the roomCheck function. You
could probably trap exit commands here and pass the noexit message
which is customizable.

> Or, if the situation was different, how could I make it so that
> any attempt for the player to move etc. in 'nowhere' would result
> in a message like 'You cannot move because a programmer wants you
> as a guinea pig'? But change the message for verbs like wait and
> listen?

Wow that sounds like a little lab I have for testing bits of code.
The intro says something very similar. *L*

Tom
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tom Raymond                        af956 AT osfnDOTorg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
