Ashmaedaeva
Initiate
Hello!
I'm trying to slightly modify the custom resource system that comes with OWLTR 4.0, adding properties to weapons and armor crafted with the added ore\logs\leathers. It's not difficult when using properties already defined in resourceinfo.cs, for example:
The addition of swing speed works. What I'm having a hard time doing is defining additional weapon and armor attributes. At the start of resourceinfo.cs several attributes are defined, for example:
and
Where does this come from? Which script should I look at and modify to add, let's say, mana leech or dex bonus? I've searched in several that seemed related but couldn't find the right script.
Thanks for you help
I'm trying to slightly modify the custom resource system that comes with OWLTR 4.0, adding properties to weapons and armor crafted with the added ore\logs\leathers. It's not difficult when using properties already defined in resourceinfo.cs, for example:
Code:
CraftAttributeInfo blaze = Blaze = new CraftAttributeInfo();
blaze.ArmorPhysicalResist = Uber ? 5 : Utility.Random(3)+2;
blaze.ArmorFireResist = Uber ? 5 : Utility.Random(3)+6;
blaze.ArmorColdResist = Uber ? 5 : Utility.Random(1)-3;
blaze.ArmorPoisonResist = Uber ? 5 : Utility.Random(3)+1;
blaze.ArmorEnergyResist = Uber ? 5 : Utility.Random(3)+1;
blaze.ArmorDurability = 75;
blaze.WeaponDurability = 75;
blaze.ArmorLowerRequirements = 40;
blaze.WeaponLowerRequirements = 40;
blaze.WeaponFireDamage = 80;
blaze.WeaponSwingSpeed = 15;
blaze.RunicMinAttributes = 4;
blaze.RunicMaxAttributes = Uber ? 7 : 5;
blaze.RunicMinIntensity = Uber ? 75 : 50;
blaze.RunicMaxIntensity = Uber ? 100 : 75;
The addition of swing speed works. What I'm having a hard time doing is defining additional weapon and armor attributes. At the start of resourceinfo.cs several attributes are defined, for example:
Code:
private int m_WeaponSwingSpeed;
and
Code:
public int WeaponSwingSpeed
{
get
{
return this.m_WeaponSwingSpeed;
}
set
{
this.m_WeaponSwingSpeed = value;
}
}
Where does this come from? Which script should I look at and modify to add, let's say, mana leech or dex bonus? I've searched in several that seemed related but couldn't find the right script.
Thanks for you help