• 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

change the damage of armor gauntlets in the editor

msnowman

Member
I'm fairly new at creating custom things in the editor but the wiki and some other posts have made it fairly easy for me until I ran into damage arrays. I could be having a sequencing issue but I'm not sure what phase I should be using.

I'm trying to change the damage on armor gauntlets to 2d6. The armor is an enslaved earth elemental that engulfs the wearer etc...

I copied some existing armor and then made changes to suit my needs. In the Eval Script it is checking to see if the armor is equipped. It is running in the Post-attributes phase. I've altered that script to set a number of things when it is equipped to reflect the influence of the earth elemental but I can't get it's boulders (instead of hands) to reflect 2d6+7 dmg. I wanted to use the armor gauntlets to represent the boulders.

I've determined that the armor gauntlets damage table array is text. I've added several lines to set the array in the Eval script but they don't seem to be taking effect.

hero.child[wGauntArm].field[wDamageTbl].arraytext[0] = "2d6+7"
hero.child[wGauntArm].field[wDamageTbl].arraytext[1] = "2d6+7"
hero.child[wGauntArm].field[wDamageTbl].arraytext[2] = "2d6+7"
hero.child[wGauntArm].field[wDamageTbl].arraytext[3] = "2d6+7"
hero.child[wGauntArm].field[wDamageTbl].arraytext[4] = "2d6+7"

I've done some searching but haven't found a solution. And help/direction would be appreciated.

TIA!
 
Last edited:
Nevermind. For some reason I didn't see the wDamage before when I looked at the fields for wGauntArm. Now that I use that I'm getting results.

But thank you for your suggestion.
 
Back
Top