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!
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: