Re: [CODE] Walking algorithm code

From: Marc Gale (MARC@BGC.AC.UK)
Date: 09/24/98


> Hi all. I was wanting to know if anyone has implemented a kind of walking
> algorithm for NPCs. For example, if you are a guardin a town called Sigholt,
> and you blow your whistle to summon the NPC guards in the town, is there a
> way of the NPCs to get to the player guard by walking normally, not just
> 'teleporting' themselves there?
>
> I know it would be extremely hard to implement, but it would add a huge
> extra dimension to the game - you could have a tavel brawl and get your
> friends to block the enterance :)
>

Have a peek at the 'track' code.  What that does is work out which
way to move to get to a given room.  Use that code and you should
find your mobs will walk there very tidily.

Marc


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST