On Thu, 21 Mar 1996, Hades wrote: > > 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++; Looks about right for what it does. It would determine how many people are fighting a target. The number of people the target is fighting, on the other hand, is always 1 or 0, defined as (FIGHTING(target))?(1):(0). -- Mandy, Director of The Multiplex -- pccs.cs.pomona.edu 4747 -- http://www.tmarts.com/Multiplex -- psst, buddy...my email address is in the header
This archive was generated by hypermail 2b30 : 12/07/00 PST