• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Natural Armor - Additive

Adammar

Member
Is there a way to make a racial feature that would add an additive +1 to armour? What I was able to get seems to give a +1 armour but when I equip Leather it doesn't add.

Thanks
 
I don't think Racial armor and Worn armor stack. you only get the highest. Not sure how you could add an inherit armor bonus to worn armor.

Is there a way to make a racial feature that would add an additive +1 to armour? What I was able to get seems to give a +1 armour but when I equip Leather it doesn't add.

Thanks
 
Is there a way to make a racial feature that would add an additive +1 to armour? What I was able to get seems to give a +1 armour but when I equip Leather it doesn't add.

The standard mechanism for armor does NOT stack, which is why you're not gaining the bonus. If you want armor that DOES stack, you'll need to bypass the built-in mechanism for armor and handle the bonus separately. There are four fields on the hero associated with armor - one for each location. If you apply the bonus directly to these fields, it will bypass the armor mechanism and stack.

The four fields you'll need to modify are on the hero and named "acDefTorso", "acDefHead", "acDefArms", and "acDefLegs". If you want the natural armor to stack in all four locations, you'll need the following lines of script:

Code:
herofield[acDefTorso].value += 1
herofield[acDefHead].value += 1
herofield[acDefArms].value += 1
herofield[acDefLegs].value += 1

The armor is processed at a timing of PreTraits/5000 to assign the proper defense ratings. The defense rating is used at PreTraits/6000 to determine the hero's Toughness adjustment. So the above lines of code will need to be executed between those two timings. If you schedule your Eval script for your race to occur at PreTraits/5500, you ought to be able to achieve the results you're seeking.
 
Back
Top