NWNX:EE  8193.37.14
nwnx_elc.nss
Go to the documentation of this file.
1 
6 const string NWNX_ELC = "NWNX_ELC";
7 
8 
20 
24 const int NWNX_ELC_SUBTYPE_NONE = 0;
76 
79 void NWNX_ELC_SetELCScript(string sScript);
80 
86 void NWNX_ELC_EnableCustomELCCheck(int bEnabled);
87 
91 
96 
101 
106 
111 
117 
123 
130 
137 
144 
146 
147 void NWNX_ELC_SetELCScript(string sScript)
148 {
149  NWNXPushString(sScript);
150  NWNXCall(NWNX_ELC, "SetELCScript");
151 }
152 
154 {
155  NWNXPushInt(bEnabled);
156  NWNXCall(NWNX_ELC, "EnableCustomELCCheck");
157 }
158 
160 {
161  NWNXCall(NWNX_ELC, "SkipValidationFailure");
162 }
163 
165 {
166  NWNXCall(NWNX_ELC, "GetValidationFailureType");
167  return NWNXPopInt();
168 }
169 
171 {
172  NWNXCall(NWNX_ELC, "GetValidationFailureSubType");
173  return NWNXPopInt();
174 }
175 
177 {
178  NWNXCall(NWNX_ELC, "GetValidationFailureMessageStrRef");
179  return NWNXPopInt();
180 }
181 
183 {
184  NWNXPushInt(nStrRef);
185  NWNXCall(NWNX_ELC, "SetValidationFailureMessageStrRef");
186 }
187 
189 {
190  NWNXCall(NWNX_ELC, "GetValidationFailureItem");
191  return NWNXPopObject();
192 }
193 
195 {
196  NWNXCall(NWNX_ELC, "GetValidationFailureLevel");
197  return NWNXPopInt();
198 }
199 
201 {
202  NWNXCall(NWNX_ELC, "GetValidationFailureSkillID");
203  return NWNXPopInt();
204 }
205 
207 {
208  NWNXCall(NWNX_ELC, "GetValidationFailureFeatID");
209  return NWNXPopInt();
210 }
211 
213 {
214  NWNXCall(NWNX_ELC, "GetValidationFailureSpellID");
215  return NWNXPopInt();
216 }
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_WIZARD
Definition: nwnx_elc.nss:57
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_OTHER_CLASSES
Definition: nwnx_elc.nss:59
const int NWNX_ELC_SUBTYPE_NONE
Definition: nwnx_elc.nss:24
const int NWNX_ELC_SUBTYPE_MISC_SAVING_THROW
Definition: nwnx_elc.nss:72
int NWNX_ELC_GetValidationFailureLevel()
Get the character level at which the validation failure occurred.
Definition: nwnx_elc.nss:194
const int NWNX_ELC_SUBTYPE_TOO_MANY_FEATS_THIS_LEVEL
Definition: nwnx_elc.nss:53
const int NWNX_ELC_SUBTYPE_STARTING_ABILITY_VALUE_MAX
Definition: nwnx_elc.nss:37
const int NWNX_ELC_SUBTYPE_SPELL_WIZARD_EXCEEDS_NUMSPELLS_TO_ADD
Definition: nwnx_elc.nss:65
const int NWNX_ELC_SUBTYPE_SPELL_RESTRICTED_SPELL_SCHOOL
Definition: nwnx_elc.nss:63
const int NWNX_ELC_SUBTYPE_INVALID_NUM_REMAINING_SKILL_POINTS
Definition: nwnx_elc.nss:46
const int NWNX_ELC_SUBTYPE_FEAT_IS_NORMAL_FEAT_ONLY
Definition: nwnx_elc.nss:55
const int NWNX_ELC_SUBTYPE_NUM_FEAT_COMPARISON
Definition: nwnx_elc.nss:73
const int NWNX_ELC_SUBTYPE_ILLEGAL_REMOVED_SPELL
Definition: nwnx_elc.nss:66
int NWNX_ELC_GetValidationFailureType()
Get the validation failure type.
Definition: nwnx_elc.nss:164
const int NWNX_ELC_SUBTYPE_REMOVED_NOT_KNOWN_SPELL
Definition: nwnx_elc.nss:67
const int NWNX_ELC_SUBTYPE_NON_PLAYER_CLASS
Definition: nwnx_elc.nss:33
const int NWNX_ELC_SUBTYPE_INVALID_FEAT
Definition: nwnx_elc.nss:47
const int NWNX_ELC_SUBTYPE_SPELL_LIST_COMPARISON
Definition: nwnx_elc.nss:69
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_SKILL
Definition: nwnx_elc.nss:15
const int NWNX_ELC_SUBTYPE_LEVEL_HACK
Definition: nwnx_elc.nss:26
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_ITEM
Definition: nwnx_elc.nss:14
const int NWNX_ELC_SUBTYPE_INVALID_SPELL
Definition: nwnx_elc.nss:60
const int NWNX_ELC_SUBTYPE_FEAT_NOT_AVAILABLE_TO_CLASS
Definition: nwnx_elc.nss:54
int NWNX_ELC_GetValidationFailureSkillID()
Get the ID of the skill that failed ELC validation.
Definition: nwnx_elc.nss:200
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SKILL_NOT_MET
Definition: nwnx_elc.nss:51
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SPELL_LEVEL_NOT_MET
Definition: nwnx_elc.nss:48
const int NWNX_ELC_SUBTYPE_SERVER_LEVEL_RESTRICTION
Definition: nwnx_elc.nss:25
const int NWNX_ELC_SUBTYPE_MIN_EQUIP_LEVEL
Definition: nwnx_elc.nss:29
const int NWNX_ELC_SUBTYPE_COLORED_NAME
Definition: nwnx_elc.nss:27
const int NWNX_ELC_SUBTYPE_FEAT_IS_BONUS_FEAT_ONLY
Definition: nwnx_elc.nss:56
const int NWNX_ELC_SUBTYPE_EPIC_LEVEL_FLAG
Definition: nwnx_elc.nss:40
const int NWNX_ELC_SUBTYPE_CLASS_SPELLCASTER_INVALID_PRIMARY_STAT
Definition: nwnx_elc.nss:39
const int NWNX_ELC_SUBTYPE_FEAT_LIST_COMPARISON
Definition: nwnx_elc.nss:71
const int NWNX_ELC_SUBTYPE_NOT_ENOUGH_SKILLPOINTS
Definition: nwnx_elc.nss:43
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_LEVEL
Definition: nwnx_elc.nss:61
const int NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_CLASS_SKILL
Definition: nwnx_elc.nss:44
const int NWNX_ELC_SUBTYPE_INVALID_NUM_SPELLS
Definition: nwnx_elc.nss:68
const int NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_NON_CLASS_SKILL
Definition: nwnx_elc.nss:45
const int NWNX_ELC_SUBTYPE_NON_PLAYER_RACE
Definition: nwnx_elc.nss:32
void NWNX_ELC_SetValidationFailureMessageStrRef(int nStrRef)
Set the failure message.
Definition: nwnx_elc.nss:182
int NWNX_ELC_GetValidationFailureMessageStrRef()
Get the failure message.
Definition: nwnx_elc.nss:176
int NWNX_ELC_GetValidationFailureSpellID()
Get the ID of the spell that failed ELC validation.
Definition: nwnx_elc.nss:212
int NWNX_ELC_GetValidationFailureSubType()
Get the validation failure subtype.
Definition: nwnx_elc.nss:170
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_NONE
Definition: nwnx_elc.nss:12
const int NWNX_ELC_SUBTYPE_SPELL_MINIMUM_ABILITY
Definition: nwnx_elc.nss:62
const int NWNX_ELC_SUBTYPE_DM_CHARACTER
Definition: nwnx_elc.nss:31
const int NWNX_ELC_SUBTYPE_NON_PC_CHARACTER
Definition: nwnx_elc.nss:30
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_CHARACTER
Definition: nwnx_elc.nss:13
const int NWNX_ELC_SUBTYPE_NUM_MULTICLASS
Definition: nwnx_elc.nss:74
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_BARD_SORCERER
Definition: nwnx_elc.nss:58
void NWNX_ELC_SetELCScript(string sScript)
Sets the script that runs whenever an ELC validation failure happens.
Definition: nwnx_elc.nss:147
int NWNX_ELC_GetValidationFailureFeatID()
Get the ID of the feat that failed ELC validation.
Definition: nwnx_elc.nss:206
const int NWNX_ELC_SUBTYPE_PRESTIGE_CLASS_REQUIREMENTS
Definition: nwnx_elc.nss:35
const int NWNX_ELC_SUBTYPE_CLASS_LEVEL_RESTRICTION
Definition: nwnx_elc.nss:34
const int NWNX_ELC_SUBTYPE_ABILITY_POINT_BUY_SYSTEM_CALCULATION
Definition: nwnx_elc.nss:38
const int NWNX_ELC_SUBTYPE_UNIDENTIFIED_EQUIPPED_ITEM
Definition: nwnx_elc.nss:28
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_ABILITY_VALUE_NOT_MET
Definition: nwnx_elc.nss:50
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_FEAT
Definition: nwnx_elc.nss:16
void NWNX_ELC_SkipValidationFailure()
Skip an ELC Validation Failure Event.
Definition: nwnx_elc.nss:159
const int NWNX_ELC_SUBTYPE_TOO_MANY_HITPOINTS
Definition: nwnx_elc.nss:41
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_BASE_ATTACK_BONUS_NOT_MET
Definition: nwnx_elc.nss:49
const int NWNX_ELC_SUBTYPE_SKILL_LIST_COMPARISON
Definition: nwnx_elc.nss:70
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_CUSTOM
Definition: nwnx_elc.nss:18
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_SPELL
Definition: nwnx_elc.nss:17
const int NWNX_ELC_SUBTYPE_UNUSABLE_SKILL
Definition: nwnx_elc.nss:42
const int NWNX_ELC_SUBTYPE_SPELL_ALREADY_KNOWN
Definition: nwnx_elc.nss:64
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_FEAT_NOT_MET
Definition: nwnx_elc.nss:52
void NWNX_ELC_EnableCustomELCCheck(int bEnabled)
Enables a custom ELC Check that will call the ELC Script with the NWNX_ELC_VALIDATION_FAILURE_TYPE_CU...
Definition: nwnx_elc.nss:153
const int NWNX_ELC_SUBTYPE_CLASS_ALIGNMENT_RESTRICTION
Definition: nwnx_elc.nss:36
object NWNX_ELC_GetValidationFailureItem()
Get the item that failed ILR validation.
Definition: nwnx_elc.nss:188