Re: Aggr mobs

From: Zizazat Lazuras (zizazat@INAV.NET)
Date: 08/06/97


On Wed, 6 Aug 1997, John Evans wrote:

> 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.

I just changed mobact.c so there is no NPC check in the aggr code. (So all
my mobs with fight.) It is alot of fun.

--Ziz, Netshamen


     +------------------------------------------------------------+
     | 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