Newsgroups: rec.arts.int-fiction
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!nntp.abs.net!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!world!not-for-mail
From: buzzard@TheWorld.com (Sean T Barrett)
Subject: Re: [INFORM] What am I doing wrong?
Sender: news@world.std.com (Mr Usenet Himself)
Message-ID: <GtnpM7.B6y@world.std.com>
Date: Thu, 28 Mar 2002 00:06:07 GMT
References: <6b985d04.0203241614.70743551@posting.google.com> <3ca0e8d3$0$3951$b45e6eb0@senator-bedfellow.mit.edu> <6e5fc465.0203270943.54441f5e@posting.google.com> <Pine.LNX.4.21.0203271427410.5692-100000@iabervon.org>
NNTP-Posting-Host: shell01.theworld.com
Organization: The World Public Access UNIX, Brookline, MA
X-Newsreader: trn 4.0-test72 (19 April 1999)
Lines: 23
Xref: news.duke.edu rec.arts.int-fiction:102246

Daniel Barkalow  <iabervon@iabervon.org> wrote:
>On 27 Mar 2002, EPerson wrote:
>> here's my new solution: use an each_turn rule. (Not a daemon, because
>> that would run if the child wasn't in scope.)
>>
>>   each_turn [; Bounce: if (noun==ball) "~I wish I had a ball to
>> bounce,~ says
>>                        the child."; ];
>>
>That's actually pretty clever. The first benefit is that you can similarly
>respond to the player's failed attempts:
>
>The second is that each_turn is the simplest way to have NPCs do random
>minor activity, and this method will cause the NPC to only do random
>things when not responding to a particular action.

Yow. That's a really cool trick. I wish I'd known of it
when writing The Weapon, which had a fairly hackish "every
before/after where you do something interesting also includes
a print of Cheryl's reaction, plus sets a global to keep her
other each-turn stuff from running."

SeanB
