Aller au contenu

Photo

Damage Reduction Woes


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

#1
Psionic-Entity

Psionic-Entity
  • Members
  • 195 messages

Just a quick one. I've been applying DR effects to PCs with the following script line:

effect eReduced = SetEffectSpellId(SupernaturalEffect(EffectDamageReduction(nReducedBy,DAMAGE_POWER_NORMAL,0,DR_TYPE_NONE)),SYSTEM_PRESTRIKE_ID);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eReduced,oPC);

Out of hundreds of tries it's never failed to work exactly as advertised against any weapon wielded in hand slots, but for some reason creatures with creature weapons are consistently ignoring it. It appears sporadically at times, but most of the time the damage just goes right through it.

 

Any ideas?



#2
Loki_999

Loki_999
  • Members
  • 430 messages

DR in general is badly coded anyway.

 

See my recent posts on EffectDamageReduction here if you missed them (ignore title which says resistance): http://forum.bioware...stance-problem/

 

Creature weapons are also borked in that they do not always follow regular rules.

 

Two things i've discovered about creature weapons:

 

1) Creature weapon feats are worthless except the Weapon Specialization line of feats.  Weapon Focus, Improved Critical, etc need to be from the Unarmed line.

 

2) If you set the material of a creature weapon it still doesn't bypass material based DR.  So, an Alchemical silver claw will not bypass DR/Alchemical Silver. I'd guess this is because the Monster Damage property is not considered when it comes to bypassing DR, only base weapon regular damage.  I presume the only way to get creatures able to bypass DR is place regular weapons in their creature weapon slots (yup, it can be done).

 

So basically, i'd guess you are running into a hardcoded issue and nothing to be done about it.

 

Hmmm... have you tried DAMAGE_TYPE_ALL instead of DAMAGE_TYPE_NONE?



#3
Psionic-Entity

Psionic-Entity
  • Members
  • 195 messages

It's DR_TYPE_NONE, not DAMAGE_TYPE_NONE, there's no ALL. In that line of thinking, though, I tried using DR_TYPE_EPIC and it appears to work now.


  • rjshae aime ceci

#4
Loki_999

Loki_999
  • Members
  • 430 messages

Cool. Can't beat a bit of Epic! :D



#5
Pitdmn

Pitdmn
  • Members
  • 25 messages

Curiosity, as I was wondering about DR myself, how did you utilize the code and what did the final code look like?



#6
Psionic-Entity

Psionic-Entity
  • Members
  • 195 messages

It's in a function that gets called every time a creature is hit by a weapon. It's similar to the dnd variant ruleset where armor gives a random DR instead of AC, except to make it work in nwn2 the DR amount gets rolled after every hit (and, of course, when you change your equipment loadout).



#7
Pitdmn

Pitdmn
  • Members
  • 25 messages

Thanks.