Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
This commit is contained in:
27
nwnds_module/ka_vaaligchk.nss
Normal file
27
nwnds_module/ka_vaaligchk.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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;
|
||||
}
|
Reference in New Issue
Block a user