rradicob
Sorceror
I'm trying to make it so that a crafted item will have a skill bonus included in it's attributes.
I'm pretty sure that I need to add it to somewhere in these lines [Scripts\Misc\ResourceInfo...starting on line 49]. I'm using 2.1, I think this file was called OreInfo in earlier versions.
But I'm not sure how to script it properly.
I've tried: public int WeaponSkillBonuses{ get{ return m_AosSkillBonuses; } set{ m_AosSkillBonuses = value; } }
and public int WeaponSkillBonuses{ get{ return weap.m_WeaponAosSkillBonuses; } set{ weap.m_WeaponAosSkillBonuses = value; } }
Then under say, ShadowIron I add this line: shadowIron.WeaponSkillBonuses.SetValues( 0, SkillName.Magery, 10.0 );
My first attempt gives this error message: The name 'm_AosSkillBonuses' does not exist in the current
context
My second gives this: The name 'weap' does not exist in the current context
I've search through the BaseWeapon and BaseArmor files but I can't seem to get this right.
I'm pretty sure that I need to add it to somewhere in these lines [Scripts\Misc\ResourceInfo...starting on line 49]. I'm using 2.1, I think this file was called OreInfo in earlier versions.
But I'm not sure how to script it properly.
I've tried: public int WeaponSkillBonuses{ get{ return m_AosSkillBonuses; } set{ m_AosSkillBonuses = value; } }
and public int WeaponSkillBonuses{ get{ return weap.m_WeaponAosSkillBonuses; } set{ weap.m_WeaponAosSkillBonuses = value; } }
Then under say, ShadowIron I add this line: shadowIron.WeaponSkillBonuses.SetValues( 0, SkillName.Magery, 10.0 );
My first attempt gives this error message: The name 'm_AosSkillBonuses' does not exist in the current
context
My second gives this: The name 'weap' does not exist in the current context
I've search through the BaseWeapon and BaseArmor files but I can't seem to get this right.