Aller au contenu

Photo

Barbarian damage reduction coding


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
ChemDog

ChemDog
  • Members
  • 5 messages
Hi Everyone,

Does anyone know how barbarian damage reduction is scripted/coded?

I've looked in the feats.2da and I only see references to the feat icon and dialog.TLK.  How does the game engine know how to handle barbarian damage reduction?  Is it hardcoded?  If I made another class and cut and past barbarian damage reduction in it's bonus feat progression, would the game apply that correctly?

Any input is appreciated!

-ChemDog

#2
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
take a look at NW_S1_BarbRage.nss in script editor.

#3
ChemDog

ChemDog
  • Members
  • 5 messages

painofdungeoneternal wrote...

take a look at NW_S1_BarbRage.nss in script editor.


Hi PDE, thanks for the reply!

I think I sort of understand feats that are activated, they seem just like spells and have their NSS file referenced in spells.2da.  I'm not understanding passive feats like the barb DR 1/- or weapon proficiencies.  Which script actually gives the DR to your barbarian in-game?

#4
The Fred

The Fred
  • Members
  • 2 516 messages
Unfortunately, these are hardcoded. AFAIK there's no way to change/modify/create such feats directly. However, NWN2 did add the functionality to create "persistant feats" - take a look at the Paladin's Aura (or the Blackguard's). These work just like active feats, triggering a spell, but the IsPersistantFeat (or some similarly named) column makes them apply their effects automatically. You could add DR there. I believe the Stormlord resistance feats are actually done this way, too.

#5
ChemDog

ChemDog
  • Members
  • 5 messages

The Fred wrote...

Unfortunately, these are hardcoded.


Not what I wanted to hear, but confirmation is appreciated.  Looks like I will have to imitate Aura of Courage-type feats for what I want.  Should be a good learning experience, thanks for the reply!