Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
87 lines
2.5 KiB
Plaintext
87 lines
2.5 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName jw_chkelfhalfelf
|
|
//:://////////////////////////////////////////////
|
|
#include "prc_inc_racial"
|
|
|
|
//:: Returns TRUE if PC is an elf or half-elf
|
|
//:: or has a Lore of 15 ranks or more.
|
|
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
|
|
if (GetSkillRank(SKILL_LORE, oPC) > 14)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
if (!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF
|
|
|| MyPRCGetRacialType(oPC) == RACIAL_TYPE_HALFELF))
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
|
|
/* int StartingConditional()
|
|
{
|
|
|
|
if (GetSkillRank(SKILL_LORE,GetPCSpeaker())>14)
|
|
{
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
// Reject player races
|
|
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DWARF)
|
|
return FALSE;
|
|
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GNOME)
|
|
return FALSE;
|
|
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFLING)
|
|
return FALSE;
|
|
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFORC)
|
|
return FALSE;
|
|
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMAN)
|
|
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;
|
|
}
|
|
*/ |