Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Add Wisdom to to-hit rolls (http://forums.wolflair.com/showthread.php?t=56620)

eldamir September 19th, 2016 07:01 PM

Add Wisdom to to-hit rolls
 
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

Mergon September 20th, 2016 06:43 AM

Are you trying to add a Wisdom bonus instead of Dexterity or Strength or in addition to them?

eldamir September 20th, 2016 06:50 AM

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

Mergon September 20th, 2016 08:14 AM

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

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]
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. :)

eldamir September 20th, 2016 08:56 AM

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?

Mergon 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.

eldamir September 20th, 2016 09:28 AM

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

Mergon September 20th, 2016 09:30 AM

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


All times are GMT -8. The time now is 11:40 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.