WoR_PRC8/_module/nss/chk_subr_dryad.nss

43 lines
1005 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
//:: Fairies & fey-like.
#include "prc_inc_racial"
int StartingConditional()
{
if(GetIsDM(GetPCSpeaker()))
{ return TRUE; }
// Get the PC who is involved in this conversation
object oPC = GetPCSpeaker();
// The PC must be one of the listed races.
if ( GetRacialType(oPC) != RACIAL_TYPE_PIXIE &&
GetRacialType(oPC) != RACIAL_TYPE_BROWNIE &&
GetRacialType(oPC) != RACIAL_TYPE_HYBSIL &&
GetRacialType(oPC) != RACIAL_TYPE_SPIRIT_FOLK &&
GetRacialType(oPC) != RACIAL_TYPE_KILLOREN &&
GetRacialType(oPC) != RACIAL_TYPE_VOLODNI )
return FALSE;
// If we make it this far, we have passed all tests.
return TRUE;
}
/* int StartingConditional()
{
if(GetIsDM(GetPCSpeaker()))
{ return TRUE; }
object oPC = GetPCSpeaker();
string Subrace = GetStringLowerCase(GetSubRace(oPC));
if(Subrace == "pixie" || Subrace == "dryad" || Subrace == "nymph"|| Subrace == "satyr")
{
return TRUE;
}
else
{
return FALSE;
}
} */