Message-ID: <3B7BD704.647C9721@csi.com>
Date: Thu, 16 Aug 2001 10:21:56 -0400
From: John Colagioia <JColagioia@csi.com>
Organization: No Conspiracy Here...
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en,fr,ru,es,it,ga,de,ja,gd,eu
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: [Inform] how to force player to sleep.
References: <jTCe7.122137$J37.30111774@typhoon.southeast.rr.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.34.37.104
X-Original-NNTP-Posting-Host: 208.34.37.104
X-Trace: excalibur.gbmtech.net 997971251 208.34.37.104 (16 Aug 2001 10:14:11 EST)
Lines: 23
X-Authenticated-User: jnc
X-Original-NNTP-Posting-Host: 127.0.0.1
Path: news.duke.edu!newsgate.duke.edu!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news-reader.ntrnet.net!uunet!ash.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:91208

Bruce Loving wrote:

> I want to force a player to sleep for x turns if they
> enter a bed.  I have a timer created and know how
> to check the time_left value.
> do I have to create a Before event for
> every possible action the player could take?
> I would like the program to return 1 message
> ala "You slumber peacefully" no matter what
> the player types.
> Thankx

Well, you could just have an orders() method on the player, which
simply tests time_left and does something, without trapping any
explicit actions.

However, if I understand the question correctly, that will cause the
player to be stuck with nothing to do until the sleep timer runs out.
That might be a bit...I dunno...boring(?) in a game.  Would it be
better, perhaps, to just mess with the number of turns elapsed and
describe the experience to the player?


