View Single Post
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old September 20th, 2016, 09:07 AM
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.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!

Last edited by Mergon; September 20th, 2016 at 09:11 AM.
Mergon is offline   #6 Reply With Quote