 
                
        
    #define IS_VAMPIRE(ch) ((ch)->race == race_lookup("vampire")) 
                
        
     
                
        
     
                
        
     
                
        
     
                
        
    bool is_vampire( CHAR_DATA *ch )
{
if( !ch || !ch->race )
return FALSE;
if( ch->race == race_lookup("vampire") )
return TRUE;
return FALSE;
}
 
                
        
    bool is_vampire( CHAR_DATA *ch ) {
  assert(ch && ch->race);
  return ch->race == race_lookup("vampire"); 
}
        
         
                
        
    
Now, I think I've got it right, but want to make sure. I want it to check if they are a vampire, regardless of if they are a PC or NPC. It should be:
#define IS_VAMPIRE(ch) (ch->race == race_lookup("vampire"))That's correct right? That would allow me to simplify "ch->race == race_lookup("vampire")" to IS_VAMPIRE correct?
Arholly