PWE_PRC8/_module/nss/balro_nolikau.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

68 lines
2.3 KiB
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.3
For download info, please visit:
http://www.lilacsoul.revility.com */
int StartingConditional()
{
object oPC = GetPCSpeaker();
// Check if the character has any forbidden classes
if (GetLevelByClass(CLASS_TYPE_BARBARIAN, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_BARD, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_CLERIC, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_DRUID, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_MONK, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_SORCERER, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_WIZARD, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_ARCANE_ARCHER, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_ASSASSIN, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_BLACKGUARD, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_HARPER, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_SHADOWDANCER, oPC) > 0)
{
return FALSE; // Disqualify if they have any of these classes
}
// Ensure they have at least one of the allowed classes
if (GetLevelByClass(CLASS_TYPE_FIGHTER, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_PALADIN, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_RANGER, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_ROGUE, oPC) > 0)
{
return TRUE; // Pass if they have only these classes
}
return FALSE; // Otherwise, fail
}
/* int StartingConditional()
{
object oPC = GetPCSpeaker();
if ((GetLevelByClass(CLASS_TYPE_BARBARIAN, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_BARD, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_CLERIC, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_DRUID, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_MONK, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_SORCERER, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_ARCANE_ARCHER, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_ASSASSIN, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_BLACKGUARD, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_HARPER, oPC)==0)&&
(GetLevelByClass(CLASS_TYPE_SHADOWDANCER, oPC)==0))
return FALSE;
if ((GetLevelByClass(CLASS_TYPE_FIGHTER, oPC)!=0)||
(GetLevelByClass(CLASS_TYPE_PALADIN, oPC)!=0)||
(GetLevelByClass(CLASS_TYPE_RANGER, oPC)!=0)||
(GetLevelByClass(CLASS_TYPE_ROGUE, oPC)!=0))
return FALSE;
return TRUE;
} */