• 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

Armor Enhancement Bonus Items

Muspellsheimr

Active member
I am trying to create an item that adds an armor enhancement bonus to armor class (armor bonus, does not stack with the enhancement bonus of other worn armor), but without requiring armor for the tag to be applied to.

I can apply a non-armor enhancement bonus to AC, I can apply an enhancement bonus to armor items, but I cannot find a tag that works to apply the armor enhancement bonus without an armor item to be modified. Is there a way to do this, or am I going to have to create a 'blank' suit of armor to add to the character to modify as a workaround?
 
So wait your trying to add an enhancement bonus to AC without actually having any armor to be enhanced? Is this to try and make it so that magic Armor Enhancement's don't stack with it?

So if you give this a +1 bonus and I put on +1 Leather armor what is the final value that is to be added to AC 3 or 4?

All hero's have the "ArmorClass" Thing on them by default and it has the BonEnhance field. But this means if you give a +1 Enhancement bonus to ArmorClass and the person wears a +1 Leather Armor the final value is going to be +4.
 
Correct. Your example would give a final of +3 (+2 armor bonus and +1 armor enhancement bonus).

The problem with the BonEnhance field is that not only does it stack with armor enhancements, it also applies to touch armor class, both of which make it essentially unusable for the goal.

Ideally, I want to reference the armor enhancement bonus independently from an armor thing. So far, I have been trying a foreach workaround with a 'blank' (statless) piece of armor and this.
Code:
Pre-levels 5000
if (field[gIsEquip].value <> 0) then
  foreach pick in hero from BaseArmor
    #enhancementbonus[eachpick,1]
  nexteach
endif
This is working correctly for using the higher of the two enhancement values for armor, but is also applying an unintended enhancement bonus to natural armor.

Help getting either method to work correctly would be appreciated.
 
Back
Top