Re: Inform: Following the player


7 Dec 1995 10:01:56 GMT

JJF (J.J.Farmer-CSSE94@cs.bham.ac.uk) wrote:
: Does anyone know how we should go about programming a creature that follows
: the player? I've had a go, and the best I could come up with was:

: Nearby dog "dog"
: with name "dog", article "your",
: describe [;
: "Your dog is panting here.^";
: ],
: daemon [;
: give self ~concealed;
: if (TestScope(self,player)~=0) print "Your dog lollops in.^";
: StopDaemon(self);
: ],

what's wrong with
daemon [;
if (parent(self) ~= parent(player)
{
move self to parent(player);
"Your dog lollops in.";
}
],

probably something knowing my programming ability. Now 'lollops' - there's
a word I've not heard for a long time.

--
+----------------------------------------------------------------------+
Adi, Lecturer in ???????      |                no .sig
Kingston University           |                no .sig
+----------------------------------------------------------------------+