Opps, I missed that. I added ' eachpick.field[atrBonus].value += iWis' to the script. This should add the wisdom bonus to Ranged Attack Bonus field of each eligible weapon.
I can't test it atm, but it should work.
Quote:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
var iText as string
var iWis as number
iWis = hero.child[aWIS].field[aModBonus].value
iText = "+" & iWis & " Wisdom"
~ Here we are pulling the text the user entered from the
~ Durattion field to set the text.
foreach pick in hero from BaseWep where "wCategory.RangeProj"
#extradamage[eachpick,iText,eachpick.field[name].text]
eachpick.field[atrBonus].value += iWis
nexteach
|
Note: You may also want to try replacing the line '#extradamage[eachpick,iText,eachpick.field[name].text]' with 'eachpick.field[dmrBonus].value += iWis'. This will add the Wisdom bonus directly to the weapon's damage instead of as a text fields as I originally set up.