/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Forsettii's Quest Builder System. Version 1.0 Created for Layonara Online Forsettii Forsettii@yahoo.com April 7, 2004 Race Checking Tool. Variables: n_race - Then looks against the choices. Valid Races See Below: "dwarf", "elf", "gnome", "halfelf", "halfling", "halforc", "human" -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ #include "prc_inc_racial" int StartingConditional() { string sRace = GetLocalString(OBJECT_SELF, "n_race"); if ( sRace == "dwarf" ) { if(MyPRCGetRacialType(GetPCSpeaker()) != RACIAL_TYPE_DWARF) return TRUE; return FALSE; } else if ( sRace == "elf" ) { if(MyPRCGetRacialType(GetPCSpeaker()) != RACIAL_TYPE_ELF) return TRUE; return FALSE; } else if ( sRace == "gnome" ) { if(MyPRCGetRacialType(GetPCSpeaker()) != RACIAL_TYPE_GNOME) return TRUE; return FALSE; } else if ( sRace == "halfelf" ) { if(MyPRCGetRacialType(GetPCSpeaker()) != APPEARANCE_TYPE_HALF_ELF) return TRUE; return FALSE; } else if ( sRace == "halfling" ) { if(MyPRCGetRacialType(GetPCSpeaker()) != RACIAL_TYPE_HALFLING) return TRUE; return FALSE; } else if ( sRace == "halforc" ) { if(MyPRCGetRacialType(GetPCSpeaker()) != RACIAL_TYPE_HALFORC) return TRUE; return FALSE; } else if ( sRace == "human" ) { if(MyPRCGetRacialType(GetPCSpeaker()) != RACIAL_TYPE_HUMAN) return TRUE; return FALSE; } else { return FALSE; } }