• 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

Add Wisdom to to-hit rolls

eldamir

Active member
I'm trying to add a Class Special that adds wisdom mod to ranged weapon attacks but can't seem to find 1) how to do it or 2) think of anything that I can clone.

Any help here would be greatly appreciated.

thanks
 
In addition to them.
"At 11th level, your imbued arrows gain a limited ability to seek their target. You may now apply your Wisdom modifier as a bonus to hit with your imbued arrows."
From another vecna archetype
 
Here is a quick Class Special Eval script I put together. If its not quite what you want feel free to use it as a base for your own. :)

Phase: Post-Attributes, Priority: 20600

~ 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]
nexteach

This applies a wisdom bonus to all projectile weapons, but not Thrown weapons. Adding thrown weapons is simply a matter of copying the last 3 lines of the script and changing "wCategory.RangeProj" to "wCategory.RangeThrowj".

Thanks go to ShadowChemosh for showing me the #extradamage macro a while back. :)
 
Thanks for that Mergon - that adds a text note on the damage side,
How would I add Wis to (dex or str) on the attack bonus side though?
 
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.

~ 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.
 
Last edited:
That was exactly what the Dr ordered, Mergon!

Thanks and one of these days, I'll actually figure out the ins-and-outs of all these eval scripts :)
 
These are part of hero Lab and may help some. :)

file:///C:/ProgramData/Hero%20Lab/data/5e/authoring/5thedediteval.htm#candidateexpr

file:///C:/ProgramData/Hero%20Lab/data/5e/authoring/5thededitwhere.htm#attributes
 
Back
Top