To create a new skill feat, builders create a SkillFeat
structure and run functions on the OnModuleLoad
.
The builder wants to create a new skill called Travel and wants to add Skill Focus and Epic Skill Focus feats.
OnModuleLoad
script enter the following: The builder doesn't like the restriction on the Trackless Step feat which inhibits the skill bonus while Underground even if the Natural flag is set.
OnModuleLoad
script enter the following: The builder has created a new feat called Doctor which counts the creature's Intelligence instead of Wisdom if higher when calculating their Heal skill.
OnModuleLoad
script enter the following: The builder has created a new feat called Moonlight Spy which gives a Listen, Search and Spot bonus of 3 plus 1 for every 2 levels of Assassin or Rogue when the player is outdoors at night time.
OnModuleLoad
script enter the following: The builder wants all Skill Focus feats to increase the modifier by 5 and all Epic Skill Focus feats to increase the modifier by 12.
OnModuleLoad
script enter the following: The builder has an area in her module called The Great Library where she wants all creatures to receive a bonus of 10 Lore whenever inside.
OnModuleLoad
script enter the following: Files | |
file | nwnx_skillranks.nss |
Classes | |
struct | NWNX_SkillRanks_SkillFeat |
A feat that manipulates skill ranks. More... | |
Functions | |
int | NWNX_SkillRanks_GetSkillFeatCountForSkill (int iSkill) |
struct NWNX_SkillRanks_SkillFeat | NWNX_SkillRanks_GetSkillFeat (int iSkill, int iFeat) |
Returns a skill feat. More... | |
struct NWNX_SkillRanks_SkillFeat | NWNX_SkillRanks_GetSkillFeatForSkillByIndex (int iSkill, int iIndex) |
Returns a skill feat by index. More... | |
void | NWNX_SkillRanks_SetSkillFeat (struct NWNX_SkillRanks_SkillFeat skillFeat, int createIfNonExistent=FALSE) |
Modifies or creates a skill feat. More... | |
struct NWNX_SkillRanks_SkillFeat | NWNX_SkillRanks_AddSkillFeatClass (struct NWNX_SkillRanks_SkillFeat skillFeat, int iClass) |
Add classes to a skill feat instead of working with the NWNX_SkillRanks_SkillFeat::sClasses string. More... | |
void | NWNX_SkillRanks_SetSkillFeatFocusModifier (int iModifier, int iEpic=FALSE) |
Change the modifier value for Skill Focus and Epic Skill Focus feats. More... | |
int | NWNX_SkillRanks_GetBlindnessPenalty () |
Gets the current penalty to Dexterity based skills when blind. More... | |
void | NWNX_SkillRanks_SetBlindnessPenalty (int iModifier) |
Set the value the Dexterity based skills get decreased due to blindness. More... | |
int | NWNX_SkillRanks_GetAreaModifier (object oArea, int iSkill) |
Get a skill modifier for an area. More... | |
void | NWNX_SkillRanks_SetAreaModifier (object oArea, int iSkill, int iModifier) |
Sets a skill modifier for the area. More... | |
int NWNX_SkillRanks_GetSkillFeatCountForSkill | ( | int | iSkill | ) |
iSkill | The skill to check the feat count. |
Definition at line 145 of file nwnx_skillranks.nss.
struct NWNX_SkillRanks_SkillFeat NWNX_SkillRanks_GetSkillFeat | ( | int | iSkill, |
int | iFeat | ||
) |
Returns a skill feat.
iSkill | The skill. |
iFeat | The feat. |
Definition at line 180 of file nwnx_skillranks.nss.
struct NWNX_SkillRanks_SkillFeat NWNX_SkillRanks_GetSkillFeatForSkillByIndex | ( | int | iSkill, |
int | iIndex | ||
) |
Returns a skill feat by index.
iSkill | The skill. |
iIndex | The index in the list of feats for the skill. |
Definition at line 155 of file nwnx_skillranks.nss.
void NWNX_SkillRanks_SetSkillFeat | ( | struct NWNX_SkillRanks_SkillFeat | skillFeat, |
int | createIfNonExistent = FALSE |
||
) |
Modifies or creates a skill feat.
skillFeat | The defined NWNX_SkillRanks_SkillFeat. |
createIfNonExistent | TRUE to create if the feat does not exist. |
Definition at line 205 of file nwnx_skillranks.nss.
struct NWNX_SkillRanks_SkillFeat NWNX_SkillRanks_AddSkillFeatClass | ( | struct NWNX_SkillRanks_SkillFeat | skillFeat, |
int | iClass | ||
) |
Add classes to a skill feat instead of working with the NWNX_SkillRanks_SkillFeat::sClasses string.
Manipulating the sClasses string in the NWNX_SkillRanks_SkillFeat struct can be difficult. This function allows the builder to enter one class at a time.
skillFeat | The NWNX_SkillRanks_SkillFeat for which the sClasses field will be modifier. |
iClass | The class to add to the Skill Feat. |
Definition at line 225 of file nwnx_skillranks.nss.
void NWNX_SkillRanks_SetSkillFeatFocusModifier | ( | int | iModifier, |
int | iEpic = FALSE |
||
) |
Change the modifier value for Skill Focus and Epic Skill Focus feats.
The stock modifier on Skill Focus and Epic Skill Focus are 3 and 10 respectively, these can be changed with this function.
iModifier | The new value for the feat modifier. |
iEpic | Set to TRUE to change the value for Epic Skill Focus. |
Definition at line 238 of file nwnx_skillranks.nss.
int NWNX_SkillRanks_GetBlindnessPenalty | ( | ) |
Gets the current penalty to Dexterity based skills when blind.
Definition at line 247 of file nwnx_skillranks.nss.
void NWNX_SkillRanks_SetBlindnessPenalty | ( | int | iModifier | ) |
Set the value the Dexterity based skills get decreased due to blindness.
iModifier | The penalty to Dexterity when blind. |
Definition at line 256 of file nwnx_skillranks.nss.
int NWNX_SkillRanks_GetAreaModifier | ( | object | oArea, |
int | iSkill | ||
) |
Get a skill modifier for an area.
oArea | The area. |
iSkill | The skill to check. |
Definition at line 264 of file nwnx_skillranks.nss.
void NWNX_SkillRanks_SetAreaModifier | ( | object | oArea, |
int | iSkill, | ||
int | iModifier | ||
) |
Sets a skill modifier for the area.
oArea | The area. |
iSkill | The skill to change. |
iModifier | The modifier to the skill in the area. |
Definition at line 275 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_STRENGTH = 1 |
Strength.
Definition at line 15 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_DEXTERITY = 2 |
Dexterity.
Definition at line 16 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_CONSTITUTION = 4 |
Constitution.
Definition at line 17 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_INTELLIGENCE = 8 |
Intelligence.
Definition at line 18 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_WISDOM = 16 |
Wisdom.
Definition at line 19 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_CHARISMA = 32 |
Charisma.
Definition at line 20 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_CALC_MIN = 64 |
Use the minimum value of the provided ability scores.
Definition at line 29 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_CALC_MAX = 128 |
Use the maximum value of the provided ability scores.
Definition at line 30 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_CALC_AVERAGE = 256 |
Use the average value of the provided ability scores.
Definition at line 31 of file nwnx_skillranks.nss.
const int NWNX_SKILLRANKS_KEY_ABILITY_CALC_SUM = 512 |
Use the sum of the provided ability scores.
Definition at line 32 of file nwnx_skillranks.nss.