NWNX:EE  8193.36.12
nwnx_elc.nss
Go to the documentation of this file.
1 #include "nwnx"
6 
7 const string NWNX_ELC = "NWNX_ELC";
8 
9 
21 
25 const int NWNX_ELC_SUBTYPE_NONE = 0;
77 
80 void NWNX_ELC_SetELCScript(string sScript);
81 
87 void NWNX_ELC_EnableCustomELCCheck(int bEnabled);
88 
92 
97 
102 
107 
112 
118 
124 
131 
138 
145 
147 
148 void NWNX_ELC_SetELCScript(string sScript)
149 {
150  string sFunc = "SetELCScript";
151 
152  NWNX_PushArgumentString(sScript);
153  NWNX_CallFunction(NWNX_ELC, sFunc);
154 }
155 
157 {
158  string sFunc = "EnableCustomELCCheck";
159 
160  NWNX_PushArgumentInt(bEnabled);
161  NWNX_CallFunction(NWNX_ELC, sFunc);
162 }
163 
165 {
166  string sFunc = "SkipValidationFailure";
167 
168  NWNX_CallFunction(NWNX_ELC, sFunc);
169 }
170 
172 {
173  string sFunc = "GetValidationFailureType";
174 
175  NWNX_CallFunction(NWNX_ELC, sFunc);
176  return NWNX_GetReturnValueInt();
177 }
178 
180 {
181  string sFunc = "GetValidationFailureSubType";
182 
183  NWNX_CallFunction(NWNX_ELC, sFunc);
184  return NWNX_GetReturnValueInt();
185 }
186 
188 {
189  string sFunc = "GetValidationFailureMessageStrRef";
190 
191  NWNX_CallFunction(NWNX_ELC, sFunc);
192  return NWNX_GetReturnValueInt();
193 }
194 
196 {
197  string sFunc = "SetValidationFailureMessageStrRef";
198 
199  NWNX_PushArgumentInt(nStrRef);
200  NWNX_CallFunction(NWNX_ELC, sFunc);
201 }
202 
204 {
205  string sFunc = "GetValidationFailureItem";
206 
207  NWNX_CallFunction(NWNX_ELC, sFunc);
208  return NWNX_GetReturnValueObject();
209 }
210 
212 {
213  string sFunc = "GetValidationFailureLevel";
214 
215  NWNX_CallFunction(NWNX_ELC, sFunc);
216  return NWNX_GetReturnValueInt();
217 }
218 
220 {
221  string sFunc = "GetValidationFailureSkillID";
222 
223  NWNX_CallFunction(NWNX_ELC, sFunc);
224  return NWNX_GetReturnValueInt();
225 }
226 
228 {
229  string sFunc = "GetValidationFailureFeatID";
230 
231  NWNX_CallFunction(NWNX_ELC, sFunc);
232  return NWNX_GetReturnValueInt();
233 }
234 
236 {
237  string sFunc = "GetValidationFailureSpellID";
238 
239  NWNX_CallFunction(NWNX_ELC, sFunc);
240  return NWNX_GetReturnValueInt();
241 }
NWNX_ELC_SUBTYPE_CLASS_ALIGNMENT_RESTRICTION
const int NWNX_ELC_SUBTYPE_CLASS_ALIGNMENT_RESTRICTION
Definition: nwnx_elc.nss:37
NWNX_ELC_SUBTYPE_FEAT_NOT_AVAILABLE_TO_CLASS
const int NWNX_ELC_SUBTYPE_FEAT_NOT_AVAILABLE_TO_CLASS
Definition: nwnx_elc.nss:55
NWNX_GetReturnValueInt
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
Definition: nwnx.nss:94
NWNX_ELC_GetValidationFailureMessageStrRef
int NWNX_ELC_GetValidationFailureMessageStrRef()
Get the failure message.
Definition: nwnx_elc.nss:187
NWNX_ELC_SUBTYPE_STARTING_ABILITY_VALUE_MAX
const int NWNX_ELC_SUBTYPE_STARTING_ABILITY_VALUE_MAX
Definition: nwnx_elc.nss:38
NWNX_ELC_VALIDATION_FAILURE_TYPE_NONE
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_NONE
Definition: nwnx_elc.nss:13
NWNX_ELC_SUBTYPE_INVALID_FEAT
const int NWNX_ELC_SUBTYPE_INVALID_FEAT
Definition: nwnx_elc.nss:48
NWNX_ELC_VALIDATION_FAILURE_TYPE_CHARACTER
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_CHARACTER
Definition: nwnx_elc.nss:14
NWNX_ELC_GetValidationFailureSubType
int NWNX_ELC_GetValidationFailureSubType()
Get the validation failure subtype.
Definition: nwnx_elc.nss:179
NWNX_ELC_SUBTYPE_INVALID_NUM_REMAINING_SKILL_POINTS
const int NWNX_ELC_SUBTYPE_INVALID_NUM_REMAINING_SKILL_POINTS
Definition: nwnx_elc.nss:47
NWNX_ELC_VALIDATION_FAILURE_TYPE_SPELL
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_SPELL
Definition: nwnx_elc.nss:18
NWNX_ELC_GetValidationFailureItem
object NWNX_ELC_GetValidationFailureItem()
Get the item that failed ILR validation.
Definition: nwnx_elc.nss:203
NWNX_ELC_SUBTYPE_CLASS_LEVEL_RESTRICTION
const int NWNX_ELC_SUBTYPE_CLASS_LEVEL_RESTRICTION
Definition: nwnx_elc.nss:35
NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_NON_CLASS_SKILL
const int NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_NON_CLASS_SKILL
Definition: nwnx_elc.nss:46
NWNX_ELC_SUBTYPE_NON_PC_CHARACTER
const int NWNX_ELC_SUBTYPE_NON_PC_CHARACTER
Definition: nwnx_elc.nss:31
NWNX_ELC_SUBTYPE_SPELL_ALREADY_KNOWN
const int NWNX_ELC_SUBTYPE_SPELL_ALREADY_KNOWN
Definition: nwnx_elc.nss:65
NWNX_ELC_SUBTYPE_INVALID_SPELL
const int NWNX_ELC_SUBTYPE_INVALID_SPELL
Definition: nwnx_elc.nss:61
NWNX_ELC_SUBTYPE_NON_PLAYER_CLASS
const int NWNX_ELC_SUBTYPE_NON_PLAYER_CLASS
Definition: nwnx_elc.nss:34
NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_OTHER_CLASSES
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_OTHER_CLASSES
Definition: nwnx_elc.nss:60
NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_CLASS_SKILL
const int NWNX_ELC_SUBTYPE_INVALID_NUM_RANKS_IN_CLASS_SKILL
Definition: nwnx_elc.nss:45
NWNX_ELC_SUBTYPE_TOO_MANY_HITPOINTS
const int NWNX_ELC_SUBTYPE_TOO_MANY_HITPOINTS
Definition: nwnx_elc.nss:42
NWNX_ELC_SUBTYPE_NONE
const int NWNX_ELC_SUBTYPE_NONE
Definition: nwnx_elc.nss:25
NWNX_ELC_SetELCScript
void NWNX_ELC_SetELCScript(string sScript)
Sets the script that runs whenever an ELC validation failure happens.
Definition: nwnx_elc.nss:148
NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_WIZARD
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_WIZARD
Definition: nwnx_elc.nss:58
NWNX_ELC_SUBTYPE_EPIC_LEVEL_FLAG
const int NWNX_ELC_SUBTYPE_EPIC_LEVEL_FLAG
Definition: nwnx_elc.nss:41
NWNX_ELC_SUBTYPE_MIN_EQUIP_LEVEL
const int NWNX_ELC_SUBTYPE_MIN_EQUIP_LEVEL
Definition: nwnx_elc.nss:30
NWNX_ELC_VALIDATION_FAILURE_TYPE_FEAT
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_FEAT
Definition: nwnx_elc.nss:17
NWNX_ELC_SUBTYPE_DM_CHARACTER
const int NWNX_ELC_SUBTYPE_DM_CHARACTER
Definition: nwnx_elc.nss:32
NWNX_ELC_SUBTYPE_REMOVED_NOT_KNOWN_SPELL
const int NWNX_ELC_SUBTYPE_REMOVED_NOT_KNOWN_SPELL
Definition: nwnx_elc.nss:68
NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_BARD_SORCERER
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_GAIN_BARD_SORCERER
Definition: nwnx_elc.nss:59
NWNX_CallFunction
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
Definition: nwnx.nss:54
NWNX_ELC_SUBTYPE_SPELL_MINIMUM_ABILITY
const int NWNX_ELC_SUBTYPE_SPELL_MINIMUM_ABILITY
Definition: nwnx_elc.nss:63
NWNX_ELC_SUBTYPE_UNUSABLE_SKILL
const int NWNX_ELC_SUBTYPE_UNUSABLE_SKILL
Definition: nwnx_elc.nss:43
NWNX_ELC_SUBTYPE_TOO_MANY_FEATS_THIS_LEVEL
const int NWNX_ELC_SUBTYPE_TOO_MANY_FEATS_THIS_LEVEL
Definition: nwnx_elc.nss:54
NWNX_PushArgumentString
void NWNX_PushArgumentString(string value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:74
NWNX_ELC_SUBTYPE_ABILITY_POINT_BUY_SYSTEM_CALCULATION
const int NWNX_ELC_SUBTYPE_ABILITY_POINT_BUY_SYSTEM_CALCULATION
Definition: nwnx_elc.nss:39
NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_LEVEL
const int NWNX_ELC_SUBTYPE_SPELL_INVALID_SPELL_LEVEL
Definition: nwnx_elc.nss:62
NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SKILL_NOT_MET
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SKILL_NOT_MET
Definition: nwnx_elc.nss:52
NWNX_PushArgumentInt
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:59
NWNX_ELC_GetValidationFailureType
int NWNX_ELC_GetValidationFailureType()
Get the validation failure type.
Definition: nwnx_elc.nss:171
NWNX_ELC_SUBTYPE_SPELL_LIST_COMPARISON
const int NWNX_ELC_SUBTYPE_SPELL_LIST_COMPARISON
Definition: nwnx_elc.nss:70
NWNX_ELC_VALIDATION_FAILURE_TYPE_SKILL
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_SKILL
Definition: nwnx_elc.nss:16
NWNX_ELC_SUBTYPE_MISC_SAVING_THROW
const int NWNX_ELC_SUBTYPE_MISC_SAVING_THROW
Definition: nwnx_elc.nss:73
NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SPELL_LEVEL_NOT_MET
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_SPELL_LEVEL_NOT_MET
Definition: nwnx_elc.nss:49
NWNX_ELC_GetValidationFailureSkillID
int NWNX_ELC_GetValidationFailureSkillID()
Get the ID of the skill that failed ELC validation.
Definition: nwnx_elc.nss:219
NWNX_ELC_SUBTYPE_PRESTIGE_CLASS_REQUIREMENTS
const int NWNX_ELC_SUBTYPE_PRESTIGE_CLASS_REQUIREMENTS
Definition: nwnx_elc.nss:36
NWNX_ELC_SkipValidationFailure
void NWNX_ELC_SkipValidationFailure()
Skip an ELC Validation Failure Event.
Definition: nwnx_elc.nss:164
NWNX_ELC_SUBTYPE_FEAT_IS_NORMAL_FEAT_ONLY
const int NWNX_ELC_SUBTYPE_FEAT_IS_NORMAL_FEAT_ONLY
Definition: nwnx_elc.nss:56
NWNX_ELC_SUBTYPE_SKILL_LIST_COMPARISON
const int NWNX_ELC_SUBTYPE_SKILL_LIST_COMPARISON
Definition: nwnx_elc.nss:71
NWNX_ELC_SUBTYPE_SPELL_WIZARD_EXCEEDS_NUMSPELLS_TO_ADD
const int NWNX_ELC_SUBTYPE_SPELL_WIZARD_EXCEEDS_NUMSPELLS_TO_ADD
Definition: nwnx_elc.nss:66
NWNX_ELC_SUBTYPE_NUM_MULTICLASS
const int NWNX_ELC_SUBTYPE_NUM_MULTICLASS
Definition: nwnx_elc.nss:75
NWNX_ELC_SUBTYPE_FEAT_REQUIRED_BASE_ATTACK_BONUS_NOT_MET
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_BASE_ATTACK_BONUS_NOT_MET
Definition: nwnx_elc.nss:50
NWNX_ELC_SUBTYPE_NUM_FEAT_COMPARISON
const int NWNX_ELC_SUBTYPE_NUM_FEAT_COMPARISON
Definition: nwnx_elc.nss:74
NWNX_ELC_SetValidationFailureMessageStrRef
void NWNX_ELC_SetValidationFailureMessageStrRef(int nStrRef)
Set the failure message.
Definition: nwnx_elc.nss:195
NWNX_ELC_EnableCustomELCCheck
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:156
NWNX_ELC_SUBTYPE_NOT_ENOUGH_SKILLPOINTS
const int NWNX_ELC_SUBTYPE_NOT_ENOUGH_SKILLPOINTS
Definition: nwnx_elc.nss:44
NWNX_GetReturnValueObject
object NWNX_GetReturnValueObject()
Returns the specified type from the c++ side.
Definition: nwnx.nss:104
NWNX_ELC_SUBTYPE_CLASS_SPELLCASTER_INVALID_PRIMARY_STAT
const int NWNX_ELC_SUBTYPE_CLASS_SPELLCASTER_INVALID_PRIMARY_STAT
Definition: nwnx_elc.nss:40
NWNX_ELC_SUBTYPE_FEAT_LIST_COMPARISON
const int NWNX_ELC_SUBTYPE_FEAT_LIST_COMPARISON
Definition: nwnx_elc.nss:72
NWNX_ELC_SUBTYPE_FEAT_IS_BONUS_FEAT_ONLY
const int NWNX_ELC_SUBTYPE_FEAT_IS_BONUS_FEAT_ONLY
Definition: nwnx_elc.nss:57
NWNX_ELC_SUBTYPE_SPELL_RESTRICTED_SPELL_SCHOOL
const int NWNX_ELC_SUBTYPE_SPELL_RESTRICTED_SPELL_SCHOOL
Definition: nwnx_elc.nss:64
NWNX_ELC_GetValidationFailureFeatID
int NWNX_ELC_GetValidationFailureFeatID()
Get the ID of the feat that failed ELC validation.
Definition: nwnx_elc.nss:227
NWNX_ELC_VALIDATION_FAILURE_TYPE_CUSTOM
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_CUSTOM
Definition: nwnx_elc.nss:19
NWNX_ELC_SUBTYPE_LEVEL_HACK
const int NWNX_ELC_SUBTYPE_LEVEL_HACK
Definition: nwnx_elc.nss:27
NWNX_ELC_VALIDATION_FAILURE_TYPE_ITEM
const int NWNX_ELC_VALIDATION_FAILURE_TYPE_ITEM
Definition: nwnx_elc.nss:15
NWNX_ELC_SUBTYPE_SERVER_LEVEL_RESTRICTION
const int NWNX_ELC_SUBTYPE_SERVER_LEVEL_RESTRICTION
Definition: nwnx_elc.nss:26
NWNX_ELC_SUBTYPE_COLORED_NAME
const int NWNX_ELC_SUBTYPE_COLORED_NAME
Definition: nwnx_elc.nss:28
NWNX_ELC_SUBTYPE_ILLEGAL_REMOVED_SPELL
const int NWNX_ELC_SUBTYPE_ILLEGAL_REMOVED_SPELL
Definition: nwnx_elc.nss:67
NWNX_ELC_GetValidationFailureLevel
int NWNX_ELC_GetValidationFailureLevel()
Get the character level at which the validation failure occurred.
Definition: nwnx_elc.nss:211
NWNX_ELC_SUBTYPE_NON_PLAYER_RACE
const int NWNX_ELC_SUBTYPE_NON_PLAYER_RACE
Definition: nwnx_elc.nss:33
NWNX_ELC_SUBTYPE_FEAT_REQUIRED_FEAT_NOT_MET
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_FEAT_NOT_MET
Definition: nwnx_elc.nss:53
NWNX_ELC_SUBTYPE_FEAT_REQUIRED_ABILITY_VALUE_NOT_MET
const int NWNX_ELC_SUBTYPE_FEAT_REQUIRED_ABILITY_VALUE_NOT_MET
Definition: nwnx_elc.nss:51
NWNX_ELC_SUBTYPE_INVALID_NUM_SPELLS
const int NWNX_ELC_SUBTYPE_INVALID_NUM_SPELLS
Definition: nwnx_elc.nss:69
NWNX_ELC_GetValidationFailureSpellID
int NWNX_ELC_GetValidationFailureSpellID()
Get the ID of the spell that failed ELC validation.
Definition: nwnx_elc.nss:235
NWNX_ELC_SUBTYPE_UNIDENTIFIED_EQUIPPED_ITEM
const int NWNX_ELC_SUBTYPE_UNIDENTIFIED_EQUIPPED_ITEM
Definition: nwnx_elc.nss:29