I am working on adding damage resistance to particular physical damage types (piercing, bludgeoning, slashing) to all player wearable armor. I am doing this by adding a damage resistance property to each custom armor item. For example a mail hauberk (chain shirt) has damage resistance slashing 3 and damage resistance piercing 1.
The main problem with this approach is that the standard damage resistance properties increase the cost of the items too much, and also standard damage resistance only comes in steps of 5. The later is easy to solve. I've added more damage resistance values to the 2da file. However I still have the item cost problem which I've tried solving in the following ways:
(1) I've created a custom item property that only applies to armor and added it to the main 2das (itemprops, itempropdefs), and created custom 2das as needed for this property. This item property shows up. Cost works as expected. The text describing the properties effects appears as I want it to.
BUT
my custom property is not recognized during combat, and so the armor does not actually have damage resistance.
QUESTION
how can I get NWN to recognize my custom item property? Does damage resistance only work if you use row 23 in the itemprops 2da?
(2) I've modified the existing damage resistance 2das to minimize cost. Unfortunately - cost of damage resistance is minimized even when I would prefer it not be. Any suggestions on how to eliminate cost increases for physical damage when applied to armor, but to have normal cost increases in all other circumstances?
Modifié par henesua, 17 février 2011 - 03:24 .