Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old September 19th, 2016, 07:01 PM
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
eldamir is offline   #1 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old September 20th, 2016, 06:43 AM
Are you trying to add a Wisdom bonus instead of Dexterity or Strength or in addition to them?

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #2 Reply With Quote
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old 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
eldamir is offline   #3 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

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

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #4 Reply With Quote
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old 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?
eldamir is offline   #5 Reply With Quote
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
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old 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
eldamir is offline   #7 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old 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

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #8 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:39 AM.


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