NWNDS/nwnds_module/ka_vaaligchk.nss
Jaysyn904 de24f81734 Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
2021-07-12 21:24:46 -04:00

28 lines
864 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName ka_aligntest
//:://////////////////////////////////////////////
#include "fincludes"
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 10/3/2005 9:39:28 AM
//:://////////////////////////////////////////////
int StartingConditional()
{
// Restrict based on the player's class
if(GetLevelByClass(CLASS_TYPE_SORCERER, GetPCSpeaker()) >= 1)
return FALSE;
if(GetLevelByClass(CLASS_TYPE_BLACKGUARD, GetPCSpeaker()) >= 1)
return FALSE;
// Make sure the player has the required feats
if(GetHasFeat(FEAT_TEMPLAR_DOMAIN_POWER, GetPCSpeaker()))
return FALSE;
// Restrict based on the player's alignment
if(GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_EVIL)
return FALSE;
return TRUE;
}