Table of Contents

Class NwFeat

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A creature/character feat(ure) definition.

public sealed class NwFeat
Inheritance
NwFeat
Inherited Members
Extension Methods

Properties

AllClassesCanUse

Gets whether all classes can use this feat or not.

Description

Gets the description of this feat, as shown in the in-game skill window.

FeatType

Gets the associated Feat type for this feat.

IconResRef

Gets the ResRef for the icon representing this skill.

Id

Gets the id of this feat.

IsHostileFeat

Gets whether the use of this feat is considered as a hostile act.

MasterFeat

This number references masterfeats.2da. The master feat is used when a feat falls into a subcategory, such as the way "improved critical (longsword)" is a subcategory of improved critical.

MaxLevel

Gets the maximum character level allowed a character to be able to select this feat.

MinAttackBonus

Gets the minimum attack bonus a character must have to select this feat.

MinFortSave

Gets the minimum fortitude saving throw bonus a character must have to be able to select this feat.

MinLevel

Gets the minimum level a character must have to be able to take this feat.

MinLevelClass

Gets the corresponding class the character must have MinLevel levels in.

MinSpellLevel

The minimum spell level a spellcasting character must be able to cast in order to select this feat.
To determine eligibility, a check is made in classes.2da, examining the "SpellGainTable" and either the "SpellKnownTable" (for bards and sorcerers) or the "PrimaryAbil" (for other classes).

Name

Gets the name of this feat, as shown in the in-game skill window.

RequiredFeatsAll

Gets all feats that need to be selected before this one may be chosen.

RequiredFeatsSome

Gets feats that need to be selected before this one may be chosen.
Unlike RequiredFeatsAll, the creature only needs one of these feats to be able to take this feat.

RequiredSkill1

Gets the first required skill the character must have to be able to select this feat.

RequiredSkill1MinRanks

Gets the number of skill ranks needed for RequiredSkill1.

RequiredSkill2

Gets the second required skill the character must have to be able to select this feat.

RequiredSkill2MinRanks

Gets the number of skill ranks needed for RequiredSkill2.

RequiresAction

Gets if this feat requires a character action.
If this is true and the character uses this feat, it is added to the character's action queue, instead of running instantly.

RequiresEpic

Gets if only epic characters can choose this feat.

Spell

The Spell associated with this feat.

SuccessorFeat

Gets the feat which follows this feat. For example, the Disarm feat has Improved Disarm as a successor.

TalentCategory

This determines how the AI treats this feat. It is an ID value in categories.2da.

TalentMaxCR

To do with the functions around Talents. The "Level" of the feat when we are searching for feats we want to not use if the enemy is of a certain CR.
Just as a reference spells.2da entries just double the spell level (so enemy is CR5, we cast level 1 or 2 spells, but not level 3 which doubles to 6).

TargetSelf

Gets whether this feat targets the character using the feat (so when using it, it doesn't pop up a selection for who to target).
Overrides spells.2da targeting options for PCs.

UsesPerDay

Gets the number of uses per day that this feat can be used.

Methods

FromFeatId(int)

Resolves a NwFeat from a feat id.

FromFeatType(Feat)

Resolves a NwFeat from a Feat.

GetRequiredAbilityScore(Ability)

Gets the minimum ability score a character must have to select this feat.

Operators

implicit operator NwFeat(Feat)