Aschbourne_PRC8/_module/nss/shrine_eg_restri.nss
GetOffMyYarn 69879d6957 Areas and Fixes
Added CCOH and missing areas
Changed some areas to be craftable,
Fixed some on death issues,
Fixed the Gaurd
2024-08-30 11:38:44 -04:00

246 lines
9.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName altar_001pc
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 01/01/2004 15:13:43
//:://////////////////////////////////////////////
int StartingConditional()
{
// Add the gender restrictions
//Uncomment out the following two lines if you DO NOT
//wish males to use the shrine
//if(GetGender(GetPCSpeaker()) == GENDER_MALE)
// return FALSE;
//Uncomment out the following two lines if you DO NOT
//wish females to use the shrine
//if(GetGender(GetPCSpeaker()) == GENDER_FEMALE)
// return FALSE;
// Reject player races
//Uncomment out any of the races you DO NOT wish to be
//able to use the shrine
//if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFORC)
// return FALSE;
//if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DWARF)
// return FALSE;
//if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELF)
// return FALSE;
//if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GNOME)
// return FALSE;
//if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFELF)
// return FALSE;
//if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFLING)
// return FALSE;
// if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMAN)
// return FALSE;
// Reject other non-PC races
// Comment out the following lines if you wish TO allow
// some/all of these types as PC's and you wish them
// to be able to use the shrine
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ABERRATION)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ANIMAL)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_BEAST)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_CONSTRUCT)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DRAGON)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELEMENTAL)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_FEY)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GIANT)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_GOBLINOID)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_MAGICAL_BEAST)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_MONSTROUS)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_OOZE)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_ORC)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_OUTSIDER)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_REPTILIAN)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_SHAPECHANGER)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_UNDEAD)
return FALSE;
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_VERMIN)
return FALSE;
// Restrict based on the player's alignment
// Comment out either all of the following lines if you
// wish all to use or uncomment one of the following lines
// for restricting based upon Good / Evil
// In this example the shrine works for Good alignments only
// Good alignment only
if (GetAlignmentGoodEvil(GetPCSpeaker()) != ALIGNMENT_GOOD)
return FALSE;
// Neutral alignments (Good/Evil) only
//if (GetAlignmentGoodEvil(GetPCSpeaker()) != ALIGNMENT_NEUTRAL)
// return FALSE;
// Evil alignments only
//if (GetAlignmentGoodEvil(GetPCSpeaker()) != ALIGNMENT_EVIL
// return FALSE;
// Non-evil alignments
//if (GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_EVIL
// return FALSE;
// Non-good alignments
//if (GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_GOOD
// return FALSE;
// Comment out either all of the following lines if you
// wish all to use or uncomment one of the following lines
// for restricting based upon Law / Chaos
// The example chooses Lawful characters only
// combined with the above choice, this means only
// lawful good characters can use this shrine
// Lawful alignments only
if (GetAlignmentLawChaos(GetPCSpeaker()) != ALIGNMENT_LAWFUL)
return FALSE;
// Neutral alignments only
//if (GetAlignmentLawChaos(GetPCSpeaker()) != ALIGNMENT_NEUTRAL)
//return FALSE;
// Chaotic alignments only
//if (GetAlignmentLawChaos(GetPCSpeaker()) != ALIGNMENT_CHAOTIC)
//return FALSE;
// Non-Lawful only
//if (GetAlignmentLawChaos(GetPCSpeaker()) == ALIGNMENT_LAWFUL)
//return FALSE;
// Non-Chaotic only
//if (GetAlignmentLawChaos(GetPCSpeaker()) == ALIGNMENT_CHAOTIC)
//return FALSE;
// Restrict based on the player's class
//If you wish to restrict worship to certain character
//clasess uncomment the next line below:
//int iPassed = 0;
//then uncomment out the two lines that relate to the
//character class / classes you wish to be able to use
//the shrine (the if line and the one immediately below
//the relevant if statement)
//(you can also increase the minimum level required for
//that character class by increasing the number after
//the relevant ">=" sign in each line
//Note also they only have to meet one of the specified
//(uncommentd) classes, not all of them!!
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_ARCANE_ARCHER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_BARBARIAN, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_ASSASSIN, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_BARD, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_BLACKGUARD, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_DIVINE_CHAMPION, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_CLERIC, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_DRUID, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_DRAGONDISCIPLE, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_DWARVENDEFENDER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_FIGHTER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_HARPER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_MONK, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_PALADIN, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_PALEMASTER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_RANGER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_ROGUE, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_SHADOWDANCER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_SHIFTER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_SORCERER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_WEAPON_MASTER, GetPCSpeaker()) >= 1))
// iPassed = 1;
//if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_WIZARD, GetPCSpeaker()) >= 1))
// iPassed = 1;
// if you have restricted use of the shrine to certain
// character classes then you need to uncomment the next
// two lines too:
//if(iPassed == 0)
//return FALSE;
// if you wish to restrict the shrine to PC's that have
// actually put the deities name in as the deity during
// character creation uncomment the next two lines and
// add you God's name where Pholtus is.
// (Warning I do not recommend this approach due to the
// difficulties PCs might have with spelling and capitals
// unless you include some script for allowing players
// to set their deity in game via scripting!!!!
//if (GetDeity(GetPCSpeaker()) != "Pholtus")
// return FALSE;
return TRUE;
// Note with this script the characters must meet all of
// the conditions specified rather than just one.
// (so feel free to make a shrine for Lawful Good,
// half-orc male assassins who worship Glod,
// just don't expect too much use out of it!!)
// Remember the number one rule: Have fun!
}