Reply-To: "Kent Tessman" <kent@remove-to-reply.generalcoffee.com>
From: "Kent Tessman" <kent@remove-to-reply.generalcoffee.com>
Newsgroups: rec.arts.int-fiction
References: <3cd981d6.13374253@news.mhogaming.com>
Subject: Re: [hugo]npc routines
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <u_mC8.1571$J46.900456@news20.bellglobal.com>
Date: Thu, 9 May 2002 00:33:31 -0400
NNTP-Posting-Host: 64.231.202.242
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1020918810 64.231.202.242 (Thu, 09 May 2002 00:33:30 EDT)
NNTP-Posting-Date: Thu, 09 May 2002 00:33:30 EDT
Organization: Bell Sympatico
Path: news.duke.edu!newsgate.duke.edu!zombie.ncsc.mil!alnews.ncsc.mil!feed.news.qwest.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
Xref: news.duke.edu rec.arts.int-fiction:104071

The Guilty Bastards source has an example of a character who will follow the
player, and the Spur source has an example of one NPC that will follow
another.  (Both source packages are available at the Archive.)  Either might
provide some additional insight into how to handle things--both sort of
start from the same basic concept as what you've already done, and build
from there.

--Kent

"the fat bastid" <tfb@sof.ws> wrote in message
news:3cd981d6.13374253@news.mhogaming.com...
> is there a class or routine already made for moving npcs
> around/following the player?
>
> what i have coded is pretty rough:
>
> if prime.engaged=1 and prime not in location
> {move prime to location}
>
> if prime is in combat with the player and the player leaves the room
> prime will follow. the only problem is that prime just kinda appears
> in the room. do i have to add the "prime enters from the east" myself
> or is there a routine or class or sumthing already for npcs?




