Re: Newbie Question: Mob Special Proc.

From: Michael Buselli (mhbusell@midway.uchicago.edu)
Date: 05/01/96


On Wed, 1 May 1996, Fionn Colvin wrote:

>        Below are 2 functions for good and bad guards which I'd like to 
> add to my mud. A Mob with goodguard special is meant to assist any mob 
> who has an alignment of > 0, and any player with alignment of > 0 who is 
> fighting a mob with alignment < 0. badguard does the opposite. I think 
> both functions are correct, flame away if their not, but I need some help 
> filling in the sections enclose by **[...]**. Any help would be greatly 
> appreciated.

     To return the person that a character is fighting, you use the 
FIGHTING() macro.  So the character pointed to by the symbol (ch) is 
fighting the character pointed to by (FIGHTING(ch)).  I think that should 
answer all the **[...]**s you had.

--
Michael Buselli
m-buselli@uchicago.edu
http://student-www.uchicago.edu/users/mhbusell/



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