Battledale_PRC8/_module/nss/jw_chk_not_dwarf.nss

98 lines
3.1 KiB
Plaintext
Raw Permalink Normal View History

//::///////////////////////////////////////////////
//:: FileName jw_chk_not_dwarf
//:://////////////////////////////////////////////
#include "prc_inc_racial"
//:: Returns FALSE if PC is a dwarf
int StartingConditional()
{
object oPC = GetPCSpeaker();
// Reject other races
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ABERRATION)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ANIMAL)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_BEAST)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_CONSTRUCT)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DRAGON)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELEMENTAL)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_FEY)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GIANT)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_GOBLINOID)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_MAGICAL_BEAST)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_MONSTROUS)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_ORC)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_OUTSIDER)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_REPTILIAN)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_SHAPECHANGER)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_UNDEAD)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_VERMIN)
return FALSE;
if(MyPRCGetRacialType(oPC) == RACIAL_TYPE_DWARF)
return FALSE;
return TRUE;
}
/* int StartingConditional()
{
// Reject player races
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DWARF)
return FALSE;
// Reject other races
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ABERRATION)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ANIMAL)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_BEAST)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_CONSTRUCT)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DRAGON)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELEMENTAL)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_FEY)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GIANT)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_GOBLINOID)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_MAGICAL_BEAST)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_MONSTROUS)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_ORC)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_OUTSIDER)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_REPTILIAN)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_SHAPECHANGER)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_UNDEAD)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_VERMIN)
return FALSE;
return TRUE;
} */