NWNX:EE  8193.36.12
nwnx_elc.nss File Reference
#include "nwnx"

Go to the source code of this file.

Functions

void NWNX_ELC_SetELCScript (string sScript)
 Sets the script that runs whenever an ELC validation failure happens. More...
 
void NWNX_ELC_EnableCustomELCCheck (int bEnabled)
 Enables a custom ELC Check that will call the ELC Script with the NWNX_ELC_VALIDATION_FAILURE_TYPE_CUSTOM type. More...
 
void NWNX_ELC_SkipValidationFailure ()
 Skip an ELC Validation Failure Event. More...
 
int NWNX_ELC_GetValidationFailureType ()
 Get the validation failure type. More...
 
int NWNX_ELC_GetValidationFailureSubType ()
 Get the validation failure subtype. More...
 
int NWNX_ELC_GetValidationFailureMessageStrRef ()
 Get the failure message. More...
 
void NWNX_ELC_SetValidationFailureMessageStrRef (int nStrRef)
 Set the failure message. More...
 
object NWNX_ELC_GetValidationFailureItem ()
 Get the item that failed ILR validation. More...
 
int NWNX_ELC_GetValidationFailureLevel ()
 Get the character level at which the validation failure occurred. More...
 
int NWNX_ELC_GetValidationFailureSkillID ()
 Get the ID of the skill that failed ELC validation. More...
 
int NWNX_ELC_GetValidationFailureFeatID ()
 Get the ID of the feat that failed ELC validation. More...
 
int NWNX_ELC_GetValidationFailureSpellID ()
 Get the ID of the spell that failed ELC validation. More...
 

Variables

ELC Failure Types

const int NWNX_ELC_VALIDATION_FAILURE_TYPE_NONE = 0
 
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_CHARACTER = 1
 
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_ITEM = 2
 
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_SKILL = 3
 
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_FEAT = 4
 
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_SPELL = 5
 
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_CUSTOM = 6
 
ELC Failure Subtypes

const int NWNX_ELC_SUBTYPE_NONE = 0
 
const int NWNX_ELC_SUBTYPE_SERVER_LEVEL_RESTRICTION = 1
 
const int NWNX_ELC_SUBTYPE_LEVEL_HACK = 2
 
const int NWNX_ELC_SUBTYPE_COLORED_NAME = 3
 
const int NWNX_ELC_SUBTYPE_UNIDENTIFIED_EQUIPPED_ITEM = 4
 
const int NWNX_ELC_SUBTYPE_MIN_EQUIP_LEVEL = 5
 
const int NWNX_ELC_SUBTYPE_NON_PC_CHARACTER = 6
 
const int NWNX_ELC_SUBTYPE_DM_CHARACTER = 7
 
const int NWNX_ELC_SUBTYPE_NON_PLAYER_RACE = 8
 
const int NWNX_ELC_SUBTYPE_NON_PLAYER_CLASS = 9
 
const int NWNX_ELC_SUBTYPE_CLASS_LEVEL_RESTRICTION = 10
 
const int NWNX_ELC_SUBTYPE_PRESTIGE_CLASS_REQUIREMENTS = 11
 
const int NWNX_ELC_SUBTYPE_CLASS_ALIGNMENT_RESTRICTION = 12
 
const int NWNX_ELC_SUBTYPE_STARTING_ABILITY_VALUE_MAX = 13
 
const int NWNX_ELC_SUBTYPE_ABILITY_POINT_BUY_SYSTEM_CALCULATION = 14
 
const int NWNX_ELC_SUBTYPE_CLASS_SPELLCASTER_INVALID_PRIMARY_STAT = 15
 
const int NWNX_ELC_SUBTYPE_EPIC_LEVEL_FLAG = 16
 
const int NWNX_ELC_SUBTYPE_TOO_MANY_HITPOINTS = 17
 
const int NWNX_ELC_SUBTYPE_UNUSABLE_SKILL = 18
 
const int NWNX_ELC_SUBTYPE_NOT_ENOUGH_SKILLPOINTS = 19
 
const int NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_CLASS_SKILL = 20
 
const int NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_NON_CLASS_SKILL = 21
 
const int NWNX_ELC_SUBTYPE_INVALID_NUM_REMAINING_SKILL_POINTS = 22
 
const int NWNX_ELC_SUBTYPE_INVALID_FEAT = 23
 
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SPELL_LEVEL_NOT_MET = 24
 
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_BASE_ATTACK_BONUS_NOT_MET = 25
 
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_ABILITY_VALUE_NOT_MET = 26
 
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SKILL_NOT_MET = 27
 
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_FEAT_NOT_MET = 28
 
const int NWNX_ELC_SUBTYPE_TOO_MANY_FEATS_THIS_LEVEL = 29
 
const int NWNX_ELC_SUBTYPE_FEAT_NOT_AVAILABLE_TO_CLASS = 30
 
const int NWNX_ELC_SUBTYPE_FEAT_IS_NORMAL_FEAT_ONLY = 31
 
const int NWNX_ELC_SUBTYPE_FEAT_IS_BONUS_FEAT_ONLY = 32
 
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_WIZARD = 33
 
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_BARD_SORCERER = 34
 
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_OTHER_CLASSES = 35
 
const int NWNX_ELC_SUBTYPE_INVALID_SPELL = 36
 
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_LEVEL = 37
 
const int NWNX_ELC_SUBTYPE_SPELL_MINIMUM_ABILITY = 40
 
const int NWNX_ELC_SUBTYPE_SPELL_RESTRICTED_SPELL_SCHOOL = 41
 
const int NWNX_ELC_SUBTYPE_SPELL_ALREADY_KNOWN = 42
 
const int NWNX_ELC_SUBTYPE_SPELL_WIZARD_EXCEEDS_NUMSPELLS_TO_ADD = 43
 
const int NWNX_ELC_SUBTYPE_ILLEGAL_REMOVED_SPELL = 44
 
const int NWNX_ELC_SUBTYPE_REMOVED_NOT_KNOWN_SPELL = 45
 
const int NWNX_ELC_SUBTYPE_INVALID_NUM_SPELLS = 46
 
const int NWNX_ELC_SUBTYPE_SPELL_LIST_COMPARISON = 47
 
const int NWNX_ELC_SUBTYPE_SKILL_LIST_COMPARISON = 48
 
const int NWNX_ELC_SUBTYPE_FEAT_LIST_COMPARISON = 49
 
const int NWNX_ELC_SUBTYPE_MISC_SAVING_THROW = 50
 
const int NWNX_ELC_SUBTYPE_NUM_FEAT_COMPARISON = 51
 
const int NWNX_ELC_SUBTYPE_NUM_MULTICLASS = 52