Re: Aggr mobs

From: John Evans (evansj@HI-LINE.NET)
Date: 08/06/97


On Wed, 6 Aug 1997, System Operator: Interqom wrote:

> How would I go about creating mobs that will attack other mobs?  I have
> attempted a spec_proc, but those are only called when a player does
> something with that player,mob,room, or object in use.

I'd make a flag called MOB_AGGR_MOB, and in mobile_activity()  (in mobact.c)
have it check for the flag and if it exists, look for an NPC victim to
attack. Do it just like the normal MOB_AGGRESSIVE, but check for NPC targets.

John Evans
mailto: evansj@hi-line.net    http://www.hi-line.net/~evansj

I don't suffer from Insanity!  I enjoy every minute of it!


     +------------------------------------------------------------+
     | 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/08/00 PST