Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

classes.2da defines the NWN class system. You can add new base and prestige classes. NWN:EE has expanded the "unhardcoded" parts of this 2da significantly.

Table of Contents

Missing Classes

There are two presitege classes from lines 39 and 40 not implemented by Bioware for whatever reason (and were they going to be patched in or HotU content?), this is why they are dummied out and skipped for the Purple Dragon Disciple (which contains no engine specific coding). They contain special feats and even some engine-tied abilities in the case of the Shou Disciple since they act like a Monk.

Some associated feats are also left in the game again as dummied out lines. Many entries in ruleset.2da also reference these classes. However there is no artwork - ie the class icon.

Assessments of getting these back in the game and extent they're complete will come in the future. The Community Patch Project included versions of these. The notes below on hardcoded lines are where the notes are.

Hardcoded Lines

Lines with hardcoded effects, although there may be ruleset.2da entries you cannot change what lines these are applied to. If you want to replicate these features you have to reuse the line. NWN:EE has removed some of these limitations so they are not listed here but will be in the 2da documentation further down.

NOTE: Scripts that run (eg; Turn Undead or Lay on Hands) for feats are not considered hardcoded!

0 - Barbarian

Barbarians (very likely - need to confirm) get Movement Speed Bonuses applied, which is tied to the class line not feat - the feat just is a nice UI bonus for players. Not sure how this affects NPCs.

307BARBARIAN_ENDURANCE_BONUS0.1f

FEAT_BARBARIAN_ENDURANCE provides this amount of % EffectMovementSpeedIncrease. So 0.1f is 10% bonus. It is probably specially hardcoded to CLASS_TYPE_BARBARIAN as well.

Uncanny dodge II grants immunity to sneak attacks from a flanking attacker unless the attacker has at least four more combined class levels of rogue, assassin, and barbarian than the defender. (Shadowdancer and blackguard levels are not counted.) For example, a level 10 rogue would have this immunity when attacked by a level 13 rogue, but not when attacked by a level 14 rogue. This immunity does not apply when the defender is flat-footed.

1 - Bard

In NWN:EE it has unhardcoded spellcasting tied to an Arcane spellbook and Charisma.

Bard Song is scripted.

Bardic Knowledge feat is tied to Bard and Harper class levels combined.

2 - Cleric

No known limitations. In NWN:EE it has unhardcoded Domains choice and spellcasting ability tied to Divine spellbook and Wisdom.

Turn Undead is scripted.

3 - Druid

No known limitations. In NWN:EE it has unhardcoded Animal Companions (the option to combine class levels for the Animal Companion level is a ruleset.2da entry) and spellcasting ability tied to Divine spellbook and Wisdom.

4 - Fighter

No known limitations.

5 - Monk

Monks get a wide array of "Monk Bonuses". These equally apply to the missing "Shou Disciple" line below. These include a different Base Attack Bonus progression, Unarmed Strike damage and ability to use "Monk abilities" in armour (just giving the feat doesn't seem to work in many cases).

Monk feats - like Ki Strike, Quivering Palm etc. may be tied to having a particular class level, or that the DC includes monk class levels, or sometimes they just fail altogether. Need to document all of these limitations (so you don't go adding Ki Strike to a monster NPC and expect it to work properly).

Expand


111KI_STRIKE_LEVEL_55FEAT_EPIC_IMPROVED_KI_STRIKE_5 if possessed provides this amount of damage penetration, as if equivalent to a +X weapon.
112KI_STRIKE_LEVEL_44FEAT_EPIC_IMPROVED_KI_STRIKE_4 if possessed provides this amount of damage penetration, as if equivalent to a +X weapon.
113KI_STRIKE_LEVEL_33FEAT_KI_STRIKE if possessed and CLASS_TYPE_MONK level is level 16 it provides this amount of damage penetration, as if equivalent to a +X weapon.
114KI_STRIKE_LEVEL_22FEAT_KI_STRIKE if possessed and CLASS_TYPE_MONK level is level 13 it provides this amount of damage penetration, as if equivalent to a +X weapon.
115KI_STRIKE_LEVEL_11FEAT_KI_STRIKE if possessed and CLASS_TYPE_MONK level is level 10 it provides this amount of damage penetration, as if equivalent to a +X weapon.
138DIAMOND_SOUL_SPELL_RESISTANCE_BASE10FEAT_DIAMOND_SOUL provides this base + Monk Class Levels in spell resistance. See NWN Wiki for details.
161QUIVERING_PALM_BASE_DC10FEAT_QUIVERING_PALM base DC. Default DC is 10 + half the monk's character level + the monk's wisdom modifier.
322FLURRY_OF_BLOWS_TO_HIT_MODIFIER-2FEAT_FLURRY_OF_BLOWS modifier to hit. It adds +1 attack per round with monk weapons/fits, at a default of -2 to hit.
367MONK_DAMAGE_TIER_ONE_THRESHHOLD4Monks get bonus damage using their fists controlled by these values. Presumably tier 1 threshold means CLASS_TYPE_MONK at level 4 gets MONK_DAMAGE_TIER_ONE_SDAMAGE_DIE (6) if small or MONK_DAMAGE_TIER_ONE_DAMAGE_DIE (8) multiplied by SDAMAGE_DICE (1) if small or MONK_DAMAGE_TIER_DICE (1) otherwise. This gives a final amount of 1d6 for small or below and 1d8 for medium or above.
368MONK_DAMAGE_TIER_TWO_THRESHHOLD8Monks get bonus damage using their fists controlled by these values. See above for example.
369MONK_DAMAGE_TIER_THREE_THRESHHOLD12Monks get bonus damage using their fists controlled by these values. See above for example.
370MONK_DAMAGE_TIER_FOUR_THRESHHOLD16Monks get bonus damage using their fists controlled by these values. See above for example.
371MONK_DAMAGE_TIER_ZERO_SDAMAGE_DIE4Monks get bonus damage using their fists controlled by these values. See above for example - this is tier 0 or by default < level 4.
372MONK_DAMAGE_TIER_ONE_SDAMAGE_DIE6Monks get bonus damage using their fists controlled by these values. See above for example.
373MONK_DAMAGE_TIER_TWO_SDAMAGE_DIE8Monks get bonus damage using their fists controlled by these values. See above for example.
374MONK_DAMAGE_TIER_THREE_SDAMAGE_DIE10Monks get bonus damage using their fists controlled by these values. See above for example.
375MONK_DAMAGE_TIER_FOUR_SDAMAGE_DIE6Monks get bonus damage using their fists controlled by these values. See above for example.
376MONK_DAMAGE_TIER_ZERO_SDAMAGE_DICE1Monks get bonus damage using their fists controlled by these values. See above for example - this is tier 0 or by default < level 4.
377MONK_DAMAGE_TIER_ONE_SDAMAGE_DICE1Monks get bonus damage using their fists controlled by these values. See above for example.
378MONK_DAMAGE_TIER_TWO_SDAMAGE_DICE1Monks get bonus damage using their fists controlled by these values. See above for example.
379MONK_DAMAGE_TIER_THREE_SDAMAGE_DICE1Monks get bonus damage using their fists controlled by these values. See above for example.
380MONK_DAMAGE_TIER_FOUR_SDAMAGE_DICE2Monks get bonus damage using their fists controlled by these values. See above for example.
381MONK_DAMAGE_TIER_ZERO_DAMAGE_DIE6Monks get bonus damage using their fists controlled by these values. See above for example - this is tier 0 or by default < level 4.
382MONK_DAMAGE_TIER_ONE_DAMAGE_DIE8Monks get bonus damage using their fists controlled by these values. See above for example.
383MONK_DAMAGE_TIER_TWO_DAMAGE_DIE10Monks get bonus damage using their fists controlled by these values. See above for example.
384MONK_DAMAGE_TIER_THREE_DAMAGE_DIE12Monks get bonus damage using their fists controlled by these values. See above for example.
385MONK_DAMAGE_TIER_FOUR_DAMAGE_DIE20Monks get bonus damage using their fists controlled by these values. See above for example.
386MONK_DAMAGE_TIER_DICE1Monks get bonus damage using their fists controlled by these values. See above for example. This applies to all "normal" sized creatures. Default normal: 1d6 - 1d20 instead of small 1d4 - 2d6.


6 - Paladin

In NWN:EE it has unhardcoded Divine spellbook based on Wisdom.

Champion of Torm and paladin levels are added together to determine the bonus damage to Smite Evil.

Other abilities such as Lay on Hands and Turn Undead are scripted.

7 - Ranger

In NWN:EE it has unhardcoded Animal Companions (the option to combine class levels for the Animal Companion level is a ruleset.2da entry) and spellcasting ability tied to Divine spellbook and Wisdom.

Note according to nwn.fandom.com the class choosing a Favoured Enemy determines the class level associated with it.

8 - Rogue

Having a single rogue class level unlocks these two "high DC" for disarming and detecting traps.

Note that Flagging, Examining and even Recovering are still possible actions if the trap is found from some means (commonly Find Traps being altered to not disable traps, only detect them).

40MAX_NON_ROGUE_DISARM_LEVEL35The maximum DC of a trap that can be disabled by a non-Rogue class using SKILL_DISARM_TRAP.
41MAX_NON_ROGUE_DETECT_LEVEL35The maximum DC of a trap that can be detected by a non-Rogue class using SKILL_SEARCH.

Uncanny dodge II grants immunity to sneak attacks from a flanking attacker unless the attacker has at least four more combined class levels of rogue, assassin, and barbarian than the defender. (Shadowdancer and blackguard levels are not counted.) For example, a level 10 rogue would have this immunity when attacked by a level 13 rogue, but not when attacked by a level 14 rogue. This immunity does not apply when the defender is flat-footed.

9 - Sorcerer

In NWN:EE it has unhardcoded Familiar availability (and they stack with other Familiar compatible classes) and spellcasting ability tied to Arcane spellbook and Charisma.

10 - Wizard

In NWN:EE it has unhardcoded Familiar availability (and they stack with other Familiar compatible classes) and spellcasting ability tied to Arcane spellbook and Intelligence.

11 - 26 - NPC Classes

Aberration, Animal, Construct, Humanoid, Monstrous, Elemental, Fey, Dragon, Undead, Commoner, Beast, Giant, MagicBeast, Outsider, Shapechanger, Vermin have no special qualities at all.

27 - Shadowdancer

No known hardcoded things, go mad adding Hide in Plain Sight feat to things.

28 - Harper

Worth noting: NWN:EE now allows this class to have a proper spellbook.

Bardic Knowledge feat is tied to Bard and Harper class levels combined.

29 - Arcane Archer

No known hardcoded things.

30 - Assassin

Uncanny dodge II grants immunity to sneak attacks from a flanking attacker unless the attacker has at least four more combined class levels of rogue, assassin, and barbarian than the defender. (Shadowdancer and blackguard levels are not counted.) For example, a level 10 rogue would have this immunity when attacked by a level 13 rogue, but not when attacked by a level 14 rogue. This immunity does not apply when the defender is flat-footed.

Assassins Death Attack is tied to Assassin levels.

31 - Blackguard

Class levels of Blackguard are tied to the Feat: Smite Evil.

32 - Champion of Torm

Champion of Torm and paladin levels are added together to determine the bonus damage to Smite Evil.

33 - Weapon Master

Superior Weapon Focus bonus is tied to Weapon Master Levels.

Ki Damage uses/day are tied to Weapon Master.

34 - Pale Master

35 - Shifter

36 - Dwarven Defender

37 - Dragon Disciple

38 - Ooze

NPC class not used specially (note the racial type doesn't even have a favoured enemy type!).

39 - Eye of Grummsh

Book Information: https://www.realmshelps.net/charbuild/classes/prestige/general/eyeofgruumsh.shtml

Basically a Barbarian prestige class for Half-Orcs only, so very narrow focus (possibly better if it was made more generic? although there are some specific bonuses for other Half-Orcs too!). Some slight Rage bonuses, and Blindsight 5 and 10 feet distances, and some other bits and bobs.

40 - Shou Disciple

Book Information: https://www.realmshelps.net/charbuild/classes/prestige/realms/shoudisciple.shtml

Basically a Monk Prestige Class that can use light weapons instead of fists. Has a variety of ruleset.2da entries for the other bonuses it has tied to feats that are dummied out. See the Monk line for further information on hardcoded aspects of this class.

Expand


117SHOU_DISCIPLE_DODGE_AC_BONUS_22Not in the default game but if a feat is added for class CLASS_TYPE_SHOU_DISCIPLE it presumably is 2 dodge AC bonus with the relevant feat.
118SHOU_DISCIPLE_DODGE_AC_BONUS_33Not in the default game but if a feat is added for class CLASS_TYPE_SHOU_DISCIPLE it presumably is 3 dodge AC bonus with the relevant feat.
390SHOU_DISCIPLE_DAMAGE_TIER_ONE_DICE1Not implemented but if SHOU_DISCIPLE is added it does something.
391SHOU_DISCIPLE_DAMAGE_TIER_TWO_DICE2Not implemented but if SHOU_DISCIPLE is added it does something.
392SHOU_DISCIPLE_DAMAGE_TIER_ONE_THRESHHOLD2Not implemented but if SHOU_DISCIPLE is added it does something.
393SHOU_DISCIPLE_DAMAGE_TIER_TWO_THRESHHOLD3Not implemented but if SHOU_DISCIPLE is added it does something.
394SHOU_DISCIPLE_DAMAGE_TIER_THREE_THRESHHOLD5Not implemented but if SHOU_DISCIPLE is added it does something.
395SHOU_DISCIPLE_DAMAGE_TIER_ZERO_DAMAGE_DIE6Not implemented but if SHOU_DISCIPLE is added it does something.
396SHOU_DISCIPLE_DAMAGE_TIER_ONE_DAMAGE_DIE8Not implemented but if SHOU_DISCIPLE is added it does something.
397SHOU_DISCIPLE_DAMAGE_TIER_TWO_DAMAGE_DIE10Not implemented but if SHOU_DISCIPLE is added it does something.
398SHOU_DISCIPLE_DAMAGE_TIER_THREE_DAMAGE_DIE6Not implemented but if SHOU_DISCIPLE is added it does something.
399SHOU_DISCIPLE_DAMAGE_TIER_ZERO_SDAMAGE_DIE4Not implemented but if SHOU_DISCIPLE is added it does something.
400SHOU_DISCIPLE_DAMAGE_TIER_ONE_SDAMAGE_DIE6Not implemented but if SHOU_DISCIPLE is added it does something.
401SHOU_DISCIPLE_DAMAGE_TIER_TWO_SDAMAGE_DIE8Not implemented but if SHOU_DISCIPLE is added it does something.
402SHOU_DISCIPLE_DAMAGE_TIER_THREE_SDAMAGE_DIE10Not implemented but if SHOU_DISCIPLE is added it does something.


41 - Purple Dragon Knight

No hardcoded lines this is essentially a custom content class.