• 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

Adjustment that modifies Armor

AndrewD2

Well-known member
So I'm doing the adjustment for Litany of Defense from UC and it doubles the enhancement bonus of all worn armor ... so I figure something like this:

Code:
~if we're not on, get out now
doneif (field[pIsOn].value = 0)


foreach pick in hero from BaseArmor where "EquipType.Armor"
        eachpick.field[arBonus].value += eachpick.field[arBonus].value 
nexteach

The earliest I can run that and get the enhancement bonus on the armor is Post-Attributes/5001 and I've done that and see the numbers change via debug, but it doesn't change the AC later.

The only other way I can think of would be to just add that straight to armor class, but that would mess things up if they were carrying armor that wasn't being used at the time.

Any ideas?
 
You say the spell doubles enhancement bonus, but your code is trying to alter the armor bonus. Which is correct?
 
Well I feel dumb, I just found the BonEnhance field there ...

So for anyone that cares I did this at Post-Attributes/4500

Code:
~if we're not on, get out now
doneif (field[pIsOn].value = 0)


foreach pick in hero from BaseArmor where "EquipType.Armor"
        eachpick.field[BonEnhance].value += eachpick.field[BonEnhance].value 
nexteach
 
Back
Top