Hi, i have been trying to add some damage reductions to a full plate armor via script but i can’t make it work. I need to do it via script since is a DR that change with the caster level when you call it only.
Here is the code:
object oChest = GetItemInSlot(INVENTORY_SLOT_CHEST);
itemproperty iprpDR = ItemPropertyDamageReduction(3,GMATERIAL_METAL_ADAMANTINE,0,DR_TYPE_GMATERIAL);
IPSafeAddItemProperty(oChest,iprpDR,0.0);