WoR_PRC8/_module/nss/check_subr_giant.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

51 lines
1.1 KiB
Plaintext

//: Giants & giant kin.
#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_GNOLL &&
GetRacialType(oPC) != RACIAL_TYPE_TROLL &&
GetRacialType(oPC) != RACIAL_TYPE_FERAL_GARGUN &&
GetRacialType(oPC) != RACIAL_TYPE_HAGSPAWN &&
GetRacialType(oPC) != RACIAL_TYPE_TAER &&
GetRacialType(oPC) != RACIAL_TYPE_FLIND &&
GetRacialType(oPC) != RACIAL_TYPE_OGRE &&
GetRacialType(oPC) != RACIAL_TYPE_MINOTAUR &&
GetRacialType(oPC) != RACIAL_TYPE_HALFOGRE )
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 == "giant-hill" || Subrace == "gnoll" || Subrace == "ogre" || Subrace == "ogre-mage")
{
return TRUE;
}
else
{
return FALSE;
}
}
*/