Re: HEheeh *blush*

From: Hades (tourach@cyber2.servtech.com)
Date: 03/21/96


> 
> Oh while i am posting one quick question.
> 	Is there a way to determine how meny people a target is fighting.
> 
> 

for(tmp = world[target->in_room].people; tmp; tmp = tmp->next_in_list)
  if(FIGHTING(tmp) == target)
    ctr++;

That would do it if I'm thinking right, I'm not sure if the next_in_list is
right though, I'm not at my home pc, but it wpould be the struct to advance
to the next in the list, of coutrse.

So... if a mob had 5 people attackoing it, run that and ctr would = 5

Hades



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