Re: Aggr mobs

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
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.

SillyMUD has MOB_ANNOYING you could looking at.

Special procedures are called every 10 seconds.

In heartbeat()
  if (!(pulse % PULSE_MOBILE))
    mobile_activity();

fgrep PULSE_MOBILE *.h
structs.h:#define PULSE_MOBILE    (10 RL_SEC)

Does no one read the code? I feel like Daniel lately.

--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- Elbert Hubbard


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