Re: IS_NPC and IS_MOB

From: Kenneth G. Cavness (stargoat@tic.com)
Date: 12/18/95


On Mon, 18 Dec 1995, Jaco van Iterson wrote:

> 
> In utils.h we have the lines:
> #define IS_NPC(ch)              MOB_FLAGS(ch).isnpc
> #define IS_MOB(ch)              (IS_NPC(ch) && ((ch)->nr >-1))

Note the ((ch)->nr > -1) part of IS_MOB?

That's the number that is automagically assigned to a character whenever 
they are first created. That number will be -1 for a "real mob". If an 
immortal is switched into an NPC, however, that number will be assigned 
to whatever their number is. 

So, a MOB is an NPC that isn't switched into.

--
Kenneth G. Cavness                  |   http://ccwf.cc.utexas.edu/~cavness
Associate Editor                    |   "That which is possible is not always
MIDS, TIC                           |    probable." -- Isaac Asimov
1-512-451-7602                      |   "What about the Tuna?" -- Unknown



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